57#ifndef LWIP_HDR_TIMEOUTS_H
58#define LWIP_HDR_TIMEOUTS_H
70#ifndef LWIP_DEBUG_TIMERNAMES
72#define LWIP_DEBUG_TIMERNAMES SYS_DEBUG
74#define LWIP_DEBUG_TIMERNAMES 0
87#if LWIP_DEBUG_TIMERNAMES
88 const char* handler_name;
103typedef void (* sys_timeout_handler)(
void *arg);
106 struct sys_timeo *next;
108 sys_timeout_handler h;
110#if LWIP_DEBUG_TIMERNAMES
111 const char* handler_name;
115void sys_timeouts_init(
void);
117#if LWIP_DEBUG_TIMERNAMES
118void sys_timeout_debug(u32_t msecs, sys_timeout_handler handler,
void *arg,
const char* handler_name);
119#define sys_timeout(msecs, handler, arg) sys_timeout_debug(msecs, handler, arg, #handler)
121void sys_timeout(u32_t msecs, sys_timeout_handler handler,
void *arg);
124void sys_untimeout(sys_timeout_handler handler,
void *arg);
125void sys_restart_timeouts(
void);
127void sys_check_timeouts(
void);
128u32_t sys_timeouts_sleeptime(
void);
130void sys_timeouts_mbox_fetch(
sys_mbox_t *mbox,
void **msg);
void(* lwip_cyclic_timer_handler)(void)
const struct lwip_cyclic_timer lwip_cyclic_timers[]