r5285: add a generic dlist_item struct which has a void *ptr for the data
authorStefan Metzmacher <metze@samba.org>
Wed, 9 Feb 2005 17:29:09 +0000 (17:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:09:36 +0000 (13:09 -0500)
metze
(This used to be commit 7dbd9e7aab0720c76561b4c9a2d38b82b3a8bfe4)

source4/include/dlinklist.h

index 04e507947d0105d8db52600c6caffa2b1152fc26..d50a46c5d43c82dad7b35398b0953cb725ed0552 100644 (file)
 /* To use these macros you must have a structure containing a next and
    prev pointer */
 
+struct dlist_item {
+       struct dlist_item *prev, *next;
+       void *ptr;      
+};
 
 /* hook into the front of the list */
 #define DLIST_ADD(list, p) \