projects
/
ppastats.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
retry on network failure during url fetch
[ppastats.git]
/
src
/
list.h
diff --git
a/src/list.h
b/src/list.h
index
f2115c8
..
54fbf28
100644
(file)
--- a/
src/list.h
+++ b/
src/list.h
@@
-20,7
+20,26
@@
#ifndef _PPASTATS_LIST_H_
#define _PPASTATS_LIST_H_
#ifndef _PPASTATS_LIST_H_
#define _PPASTATS_LIST_H_
+/*
+ * Convenience functions for manipulating null-terminated list of
+ * pointers.
+ */
+
+/* Returns the number of items in the list. */
int list_length(void **list);
int list_length(void **list);
+
+/*
+ * Adds item into a list.
+ *
+ * Returns a new allocated list containing all items.
+ */
void **list_add(void **list, void *new_item);
void **list_add(void **list, void *new_item);
+/*
+ * Appends all items of two lists.
+ *
+ * Returns a new allocated list containing all items.
+ */
+void **list_append_list(void **list1, void **list2);
+
#endif
#endif