Reinstate dropbear 0.54 update
[tomato.git] / release / src / router / dropbear / list.h
blob23ef9bb83b939e10f6a2367f4fa2d68e8385b696
1 #ifndef _DROPBEAR_LIST_H
2 #define _DROPBEAR_LIST_H
4 struct _m_list;
6 struct _m_list_elem {
7 void *item;
8 struct _m_list_elem *next;
9 struct _m_list_elem *prev;
10 struct _m_list *list;
13 typedef struct _m_list_elem m_list_elem;
15 struct _m_list {
16 m_list_elem *first;
17 m_list_elem *last;
20 typedef struct _m_list m_list;
22 m_list * list_new();
23 void list_append(m_list *list, void *item);
24 /* returns the item for the element removed */
25 void * list_remove(m_list_elem *elem);
28 #endif /* _DROPBEAR_LIST_H */