summaryrefslogtreecommitdiff
path: root/source4/include/dlinklist.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-02-09 17:29:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:36 -0500
commit73d317e0dae5d9dd30300da9dd19abaaef5db03f (patch)
tree504bc6e6a980e2ab2ec6ed4c359d910de0f4e1fa /source4/include/dlinklist.h
parentefd042e9792a96cc1eefe8a120047249a00fc974 (diff)
downloadsamba-73d317e0dae5d9dd30300da9dd19abaaef5db03f.tar.gz
samba-73d317e0dae5d9dd30300da9dd19abaaef5db03f.tar.bz2
samba-73d317e0dae5d9dd30300da9dd19abaaef5db03f.zip
r5285: add a generic dlist_item struct which has a void *ptr for the data
metze (This used to be commit 7dbd9e7aab0720c76561b4c9a2d38b82b3a8bfe4)
Diffstat (limited to 'source4/include/dlinklist.h')
-rw-r--r--source4/include/dlinklist.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/include/dlinklist.h b/source4/include/dlinklist.h
index 04e507947d..d50a46c5d4 100644
--- a/source4/include/dlinklist.h
+++ b/source4/include/dlinklist.h
@@ -21,6 +21,10 @@
/* 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) \