lwip_socket_init() is not needed any more -> compatibility define

This commit is contained in:
goldsimon 2014-11-06 14:14:58 +01:00
parent 79ecf2edb7
commit 2809405164
6 changed files with 7 additions and 15 deletions

View File

@ -6,6 +6,10 @@ HISTORY
++ New features:
2014-09-16: Simon Goldschmidt
* sockets.c/.h, init.c: lwip_socket_init() is not needed any more
-> compatibility define
2014-09-16: Simon Goldschmidt
* dns.c, opt.h: reduced ram usage by parsing DNS responses in place

View File

@ -241,15 +241,6 @@ static void event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len
static void lwip_getsockopt_internal(void *arg);
static void lwip_setsockopt_internal(void *arg);
/**
* Initialize this module. This function has to be called before any other
* functions in this module!
*/
void
lwip_socket_init(void)
{
}
/**
* Map a externally used socket index to the internal socket representation.
*

View File

@ -316,9 +316,6 @@ lwip_init(void)
memp_init();
pbuf_init();
netif_init();
#if LWIP_SOCKET
lwip_socket_init();
#endif /* LWIP_SOCKET */
ip_init();
#if LWIP_ARP
etharp_init();

View File

@ -125,7 +125,7 @@ struct raw_pcb * raw_new_ip6 (u8_t proto);
/* The following functions are the lower layer interface to RAW. */
u8_t raw_input (struct pbuf *p, struct netif *inp);
#define raw_init() /* Compatibility define, not init needed. */
#define raw_init() /* Compatibility define, no init needed. */
#ifdef __cplusplus
}

View File

@ -398,7 +398,7 @@ struct timeval {
};
#endif /* LWIP_TIMEVAL_PRIVATE */
void lwip_socket_init(void);
#define lwip_socket_init() /* Compatibility define, no init needed. */
int lwip_accept(int s, struct sockaddr *addr, socklen_t *addrlen);
int lwip_bind(int s, const struct sockaddr *name, socklen_t namelen);

View File

@ -185,7 +185,7 @@ struct etharp_q_entry {
};
#endif /* ARP_QUEUEING */
#define etharp_init() /* Compatibility define, not init needed. */
#define etharp_init() /* Compatibility define, no init needed. */
void etharp_tmr(void);
s8_t etharp_find_addr(struct netif *netif, ip_addr_t *ipaddr,
struct eth_addr **eth_ret, ip_addr_t **ip_ret);