path: root/list.h
diff options
authorvenaas <venaas>2007-06-22 13:29:31 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-06-22 13:29:31 +0000
commit88df24c1ae2b4acd53d234595c758b643372a4a7 (patch)
tree1cc29bcce3d0e713e2b044115c7cee053dd7bba7 /list.h
parent7a076e9094c424c5d59560d0f84fc8d996e8fcb1 (diff)
moved to linked lists for replyqs, removed replyq size and count
git-svn-id: e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'list.h')
1 files changed, 4 insertions, 1 deletions
diff --git a/list.h b/list.h
index 876d345..c89f902 100644
--- a/list.h
+++ b/list.h
@@ -14,7 +14,10 @@ struct list *list_create();
void list_destroy(struct list *list);
/* appends entry to list; returns 1 if ok, 0 if malloc fails */
-int list_add(struct list *list, void *data);
+int list_push(struct list *list, void *data);
+/* removes first entry from list and returns data */
+void *list_shift(struct list *list);
/* returns first node */
struct list_node *list_first(struct list *list);