Code

utils llist: Added sdb_llist_clear().
[sysdb.git] / src / include / utils / llist.h
index f557c9d41c63800ead40925f1414b7da02d80334..28816a6a49abaaf58232f55ab5b7e9a9f6a2ffa8 100644 (file)
@@ -56,6 +56,14 @@ sdb_llist_create(void);
 void
 sdb_llist_destroy(sdb_llist_t *list);
 
+/*
+ * sdb_llist_clear:
+ * Remove all elements from the list, releasing the included objects
+ * (decrement the ref-count).
+ */
+void
+sdb_llist_clear(sdb_llist_t *list);
+
 /*
  * sdb_llist_clone:
  * Clone an existing list. The objects stored in the list will not be copied