diff options
Diffstat (limited to 'include/alist.h')
-rw-r--r-- | include/alist.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/alist.h b/include/alist.h index 0090b9c0eb1..c639e42ab7d 100644 --- a/include/alist.h +++ b/include/alist.h @@ -275,6 +275,13 @@ bool alist_chk_ptr(const struct alist *lst, const void *ptr); _pos++) /** + * alist_empty() - Empty an alist + * + * This removes all entries from the list, without changing the allocated size + */ +void alist_empty(struct alist *lst); + +/** * alist_init() - Set up a new object list * * Sets up a list of objects, initially empty |