56 #ifndef LWIP_HDR_TCPIP_PRIV_H 57 #define LWIP_HDR_TCPIP_PRIV_H 74 #if LWIP_MPU_COMPATIBLE 75 #define API_VAR_REF(name) (*(name)) 76 #define API_VAR_DECLARE(type, name) type * name 77 #define API_VAR_ALLOC(type, pool, name, errorval) do { \ 78 name = (type *)memp_malloc(pool); \ 83 #define API_VAR_ALLOC_POOL(type, pool, name, errorval) do { \ 84 name = (type *)LWIP_MEMPOOL_ALLOC(pool); \ 89 #define API_VAR_FREE(pool, name) memp_free(pool, name) 90 #define API_VAR_FREE_POOL(pool, name) LWIP_MEMPOOL_FREE(pool, name) 91 #define API_EXPR_REF(expr) (&(expr)) 92 #if LWIP_NETCONN_SEM_PER_THREAD 93 #define API_EXPR_REF_SEM(expr) (expr) 95 #define API_EXPR_REF_SEM(expr) API_EXPR_REF(expr) 97 #define API_EXPR_DEREF(expr) expr 98 #define API_MSG_M_DEF(m) m 99 #define API_MSG_M_DEF_C(t, m) t m 101 #define API_VAR_REF(name) name 102 #define API_VAR_DECLARE(type, name) type name 103 #define API_VAR_ALLOC(type, pool, name, errorval) 104 #define API_VAR_ALLOC_POOL(type, pool, name, errorval) 105 #define API_VAR_FREE(pool, name) 106 #define API_VAR_FREE_POOL(pool, name) 107 #define API_EXPR_REF(expr) expr 108 #define API_EXPR_REF_SEM(expr) API_EXPR_REF(expr) 109 #define API_EXPR_DEREF(expr) (*(expr)) 110 #define API_MSG_M_DEF(m) *m 111 #define API_MSG_M_DEF_C(t, m) const t * m 118 #if !LWIP_TCPIP_CORE_LOCKING 120 #if !LWIP_NETCONN_SEM_PER_THREAD 130 enum tcpip_msg_type {
134 #if LWIP_TCPIP_TIMEOUT && LWIP_TIMERS 139 TCPIP_MSG_CALLBACK_STATIC
143 enum tcpip_msg_type type;
150 tcpip_api_call_fn
function;
163 #if LWIP_TCPIP_TIMEOUT && LWIP_TIMERS 166 sys_timeout_handler h;
err_t(* netif_input_fn)(struct pbuf *p, struct netif *inp)
void(* tcpip_callback_fn)(void *ctx)
err_t tcpip_api_call(tcpip_api_call_fn fn, struct tcpip_api_call_data *call)
err_t tcpip_send_msg_wait_sem(tcpip_callback_fn fn, void *apimsg, sys_sem_t *sem)