summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);