37#ifndef LWIP_HDR_TCPIP_H
38#define LWIP_HDR_TCPIP_H
52#if LWIP_TCPIP_CORE_LOCKING
54extern sys_mutex_t lock_tcpip_core;
55#if !defined LOCK_TCPIP_CORE || defined __DOXYGEN__
57#define LOCK_TCPIP_CORE() sys_mutex_lock(&lock_tcpip_core)
59#define UNLOCK_TCPIP_CORE() sys_mutex_unlock(&lock_tcpip_core)
62#define LOCK_TCPIP_CORE()
63#define UNLOCK_TCPIP_CORE()
75struct tcpip_callback_msg;
87#define tcpip_callback_with_block(function, ctx, block) ((block != 0)? tcpip_callback(function, ctx) : tcpip_try_callback(function, ctx))
89struct tcpip_callback_msg* tcpip_callbackmsg_new(
tcpip_callback_fn function,
void *ctx);
90void tcpip_callbackmsg_delete(
struct tcpip_callback_msg* msg);
91err_t tcpip_callbackmsg_trycallback(
struct tcpip_callback_msg* msg);
92err_t tcpip_callbackmsg_trycallback_fromisr(
struct tcpip_callback_msg* msg);
96err_t mem_free_callback(
void *m);
98#if LWIP_TCPIP_TIMEOUT && LWIP_TIMERS
99err_t tcpip_timeout(u32_t msecs, sys_timeout_handler h,
void *arg);
100err_t tcpip_untimeout(sys_timeout_handler h,
void *arg);
103#ifdef TCPIP_THREAD_TEST
104int tcpip_thread_poll_one(
void);
s8_t err_t
Definition: err.h:96
err_t(* netif_input_fn)(struct pbuf *p, struct netif *inp)
Definition: netif.h:178
void(* tcpip_callback_fn)(void *ctx)
Definition: tcpip.h:72
void(* tcpip_init_done_fn)(void *arg)
Definition: tcpip.h:70