PPP, moved low level protocol connect init to low level protocol files

Low level protocol init machine state does not belong to PPP core,
moved those init to respective low level protocol files.
This commit is contained in:
Sylvain Rochet
2015-02-15 11:25:37 +01:00
parent ee85aaccd2
commit 19282d6d6c
4 changed files with 40 additions and 34 deletions

View File

@@ -380,6 +380,9 @@ int ppp_init(void);
/* Create a new PPP control block */
ppp_pcb *ppp_new(struct netif *pppif, ppp_link_status_cb_fn link_status_cb, void *ctx_cb);
/* Set a PPP PCB to its initial state */
void ppp_clear(ppp_pcb *pcb);
/* Set link callback function */
void ppp_link_set_callbacks(ppp_pcb *pcb, link_command_cb_fn command, link_write_cb_fn write, link_netif_output_cb_fn netif_output);