PPP, moved ppp_init() from public API (ppp.h) to private API (ppp_impl.h)

ppp_init() is called by lwip_init(), users don't need to init PPP by themselves
This commit is contained in:
Sylvain Rochet 2014-12-24 19:08:58 +01:00
parent 91356d2d03
commit b30faa577d
3 changed files with 4 additions and 6 deletions

View File

@ -60,7 +60,7 @@
#include "lwip/nd6.h"
#include "lwip/mld6.h"
#include "lwip/api.h"
#include "netif/ppp/ppp.h"
#include "netif/ppp/ppp_impl.h"
/* Compile-time sanity checks for configuration errors.
* These can be done independently of LWIP_DEBUG, without penalty.

View File

@ -464,11 +464,6 @@ struct ppp_pcb_s {
*** PUBLIC FUNCTIONS ***
************************/
/*
* Initialize the PPP subsystem.
*/
int ppp_init(void);
/*
* Create a new PPP session.
*

View File

@ -365,6 +365,9 @@ struct pppd_stats {
/* PPP flow functions
*/
/* initialize the PPP subsystem */
int ppp_init(void);
/* function called by pppoe.c */
void ppp_input(ppp_pcb *pcb, struct pbuf *pb);