PPP, CORE, prepared for lower protocols callbacks returning state

Until now, callbacks used void return, preparing callbacks to return
PPPERR_ status.
This commit is contained in:
Sylvain Rochet
2015-02-17 22:57:42 +01:00
parent ee2936ffbf
commit 1ae3808e13
4 changed files with 13 additions and 7 deletions

View File

@@ -303,7 +303,7 @@ struct ppp_addrs {
/*
* PPP interface control block.
*/
typedef void (*link_command_cb_fn)(void *pcb, u8_t command);
typedef int (*link_command_cb_fn)(void *pcb, u8_t command);
typedef int (*link_write_cb_fn)(void *pcb, struct pbuf *p);
typedef err_t (*link_netif_output_cb_fn)(void *pcb, struct pbuf *p, u_short protocol);