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:
goldsimon 2007-05-18 11:27:46 +00:00
parent 4192df97ec
commit 8fa3b6802e
4 changed files with 12 additions and 0 deletions

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */