--- a/plugins/icq/list.h Sat Jan 27 11:18:17 2001 +0000 +++ b/plugins/icq/list.h Sun Jan 28 01:52:27 2001 +0000 @@ -14,19 +14,22 @@ #define list_dequeue(plist) \ list_remove_node(plist, plist->head) -typedef struct list_node_s +typedef struct list_node_s list_node; +typedef struct list_s list; + +struct list_node_s { - struct list_node_s *next; - struct list_node_s *previous; + list_node *next; + list_node *previous; void *item; -} list_node; +}; -typedef struct list_s +struct list_s { list_node *head; list_node *tail; int count; -} list; +}; list *list_new(void); void list_delete(list *plist, void (*item_free_f)(void *));