Task #7410: Removed the need to include core header files in api.h (ip/tcp/udp/raw.h) to hide the internal implementation from netconn api applications.

This commit is contained in:
goldsimon
2007-11-06 20:31:28 +00:00
parent ecce865cfe
commit f3dbd986cb
7 changed files with 29 additions and 15 deletions

View File

@@ -36,13 +36,9 @@
#if LWIP_NETCONN /* don't build if not configured for use in lwipopts.h */
#include "lwip/pbuf.h"
#include "lwip/netbuf.h"
#include "lwip/sys.h"
#include "lwip/ip.h"
#include "lwip/raw.h"
#include "lwip/udp.h"
#include "lwip/tcp.h"
#include "lwip/ip_addr.h"
#include "lwip/err.h"
#ifdef __cplusplus
@@ -56,8 +52,8 @@ extern "C" {
/* Flags for netconn_write */
#define NETCONN_NOFLAG 0x00
#define NETCONN_NOCOPY 0x00 /* Only for source code compatibility */
#define NETCONN_COPY TCP_WRITE_FLAG_COPY
#define NETCONN_MORE TCP_WRITE_FLAG_MORE
#define NETCONN_COPY 0x01
#define NETCONN_MORE 0x02
/* Helpers to process several netconn_types by the same code */
#define NETCONNTYPE_GROUP(t) (t&0xF0)
@@ -97,6 +93,11 @@ enum netconn_igmp {
};
#endif /* LWIP_IGMP */
struct ip_pcb;
struct tcp_pcb;
struct udp_pcb;
struct raw_pcb;
struct netconn {
enum netconn_type type;
enum netconn_state state;

View File

@@ -36,17 +36,14 @@
#if LWIP_NETCONN /* don't build if not configured for use in lwipopts.h */
#include "lwip/pbuf.h"
#include "lwip/sys.h"
#include "lwip/ip.h"
#include "lwip/udp.h"
#include "lwip/tcp.h"
#include "lwip/api.h"
#include "lwip/ip_addr.h"
#ifdef __cplusplus
extern "C" {
#endif
enum netconn_igmp;
/* IP addresses and port numbers are expected to be in
* the same byte order as in the corresponding pcb.
*/

View File

@@ -39,6 +39,7 @@
#include "lwip/api_msg.h"
#include "lwip/netifapi.h"
#include "lwip/pbuf.h"
#include "lwip/api.h"
#ifdef __cplusplus
extern "C" {