mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-13 11:47:00 +08:00
move sys_timeouts_mbox_fetch() to tcpip_timeouts_mbox_fetch()
This cleans up the code: sys_timeouts_mbox_fetch() was only used from tcpip.c anyway, so let's move it there. Signed-off-by: goldsimon <goldsimon@gmx.de>
This commit is contained in:
@@ -56,6 +56,11 @@ extern "C" {
|
||||
#endif /* LWIP_DEBUG*/
|
||||
#endif
|
||||
|
||||
/** Returned by sys_timeouts_sleeptime() to indicate there is no timer, so we
|
||||
* can sleep forever.
|
||||
*/
|
||||
#define SYS_TIMEOUTS_SLEEPTIME_INFINITE 0xFFFFFFFF
|
||||
|
||||
/** Function prototype for a stack-internal timer function that has to be
|
||||
* called at a defined interval */
|
||||
typedef void (* lwip_cyclic_timer_handler)(void);
|
||||
@@ -106,13 +111,8 @@ void sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg);
|
||||
|
||||
void sys_untimeout(sys_timeout_handler handler, void *arg);
|
||||
void sys_restart_timeouts(void);
|
||||
#if LWIP_TESTMODE || NO_SYS
|
||||
void sys_check_timeouts(void);
|
||||
u32_t sys_timeouts_sleeptime(void);
|
||||
#endif
|
||||
#if !NO_SYS
|
||||
void sys_timeouts_mbox_fetch(sys_mbox_t *mbox, void **msg);
|
||||
#endif /* NO_SYS */
|
||||
|
||||
#if LWIP_TESTMODE
|
||||
struct sys_timeo** lwip_sys_timers_get_next_timout(void);
|
||||
|
||||
Reference in New Issue
Block a user