summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cardell Widerkrantz <mc@hack.org>2011-05-31 15:51:05 +0200
committerMichael Cardell Widerkrantz <mc@hack.org>2011-05-31 15:51:05 +0200
commitd9bfb55bb6c888ae5e527f29345db5f47721daa7 (patch)
treeec20b99f504dd05a1a431688ee3c4451b21111b4
parent36266228bb53550305e5fa3f43c03220a75f16cd (diff)
downloadmcwm-d9bfb55bb6c888ae5e527f29345db5f47721daa7.zip
Added functions.
-rw-r--r--list.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/list.h b/list.h
index ecd2bfb..7c9a94d 100644
--- a/list.h
+++ b/list.h
@@ -18,11 +18,24 @@ void movetohead(struct item **mainlist, struct item *item);
struct item *additem(struct item **mainlist);
/*
- *
+ * Delete item from list mainlist.
*/
void delitem(struct item **mainlist, struct item *item);
/*
- *
+ * Free any data in current item and then delete item. Optionally
+ * update number of items in list if stored != NULL.
+ */
+void freeitem(struct item **list, int *stored,
+ struct item *item);
+
+/*
+ * Delete all items in list. Optionally update number of items in list
+ * if stored != NULL.
+ */
+void delallitems(struct item **list, int *stored);
+
+/*
+ * Print all items in mainlist on stdout.
*/
void listitems(struct item *mainlist);