refactor(session manager): replace dep/list/list.h with sys/queue.h

This commit is contained in:
luwenpeng
2024-09-13 15:44:46 +08:00
parent 244cc88ace
commit e0ecee73b3
5 changed files with 42 additions and 50 deletions

View File

@@ -1,6 +1,11 @@
#include "session_private.h"
#include "session_timer.h"
#ifndef container_of
#define container_of(ptr, type, member) \
(type *)((char *)(ptr) - (char *)&((type *)0)->member)
#endif
struct session_timer
{
struct timeouts *timeouts;