mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-11 06:40:28 +00:00
Added #if !NO_SYS to most of the api files since they only work with a sys layer (makes it easier for port projects).
This commit is contained in:
parent
4192df97ec
commit
8fa3b6802e
@ -40,6 +40,7 @@
|
||||
#include "lwip/tcpip.h"
|
||||
#include "lwip/memp.h"
|
||||
|
||||
#if !NO_SYS
|
||||
|
||||
struct
|
||||
netbuf *netbuf_new(void)
|
||||
@ -689,3 +690,4 @@ netconn_err(struct netconn *conn)
|
||||
return conn->err;
|
||||
}
|
||||
|
||||
#endif /* !NO_SYS */
|
||||
|
@ -38,6 +38,8 @@
|
||||
#include "lwip/tcpip.h"
|
||||
#include "lwip/igmp.h"
|
||||
|
||||
#if !NO_SYS
|
||||
|
||||
#if LWIP_RAW
|
||||
static u8_t
|
||||
recv_raw(void *arg, struct raw_pcb *pcb, struct pbuf *p,
|
||||
@ -746,3 +748,5 @@ do_join_leave_group(struct api_msg_msg *msg)
|
||||
sys_mbox_post(msg->conn->mbox, NULL);
|
||||
}
|
||||
#endif /* LWIP_IGMP */
|
||||
|
||||
#endif /* !NO_SYS */
|
||||
|
@ -44,6 +44,8 @@
|
||||
#include "lwip/inet.h"
|
||||
#include "lwip/tcp.h"
|
||||
|
||||
#if !NO_SYS
|
||||
|
||||
#define NUM_SOCKETS MEMP_NUM_NETCONN
|
||||
|
||||
struct lwip_socket {
|
||||
@ -1432,3 +1434,4 @@ int lwip_ioctl(int s, long cmd, void *argp)
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* !NO_SYS */
|
||||
|
@ -47,6 +47,8 @@
|
||||
#include "lwip/tcpip.h"
|
||||
#include "lwip/igmp.h"
|
||||
|
||||
#if !NO_SYS
|
||||
|
||||
static void (* tcpip_init_done)(void *arg) = NULL;
|
||||
static void *tcpip_init_done_arg = NULL;
|
||||
static sys_mbox_t mbox = SYS_MBOX_NULL;
|
||||
@ -368,3 +370,4 @@ tcpip_init(void (* initfunc)(void *), void *arg)
|
||||
sys_thread_new(tcpip_thread, NULL, TCPIP_THREAD_PRIO);
|
||||
}
|
||||
|
||||
#endif /* !NO_SYS */
|
||||
|
Loading…
x
Reference in New Issue
Block a user