diff options
author | 2023-05-17 16:51:48 +0200 | |
---|---|---|
committer | 2023-05-17 16:51:48 +0200 | |
commit | fb1efe264854e2539d62da1d9dc019ffa8a899da (patch) | |
tree | 7f2e2dc2ac900bf9595e3cb5988ebb9cbae6a611 /src/utils.h | |
parent | aa22d43ec96ce932cda68717deb3a414291b084b (diff) | |
download | utils-fb1efe264854e2539d62da1d9dc019ffa8a899da.tar.gz utils-fb1efe264854e2539d62da1d9dc019ffa8a899da.zip |
Divide in two functions the clist_add
In some cases, I need to retrieve the original pointer in list_item. So, the
clist_add() just adds the pointer to the list, and, clist_add_s() adds a
copy of that pointer to the list.
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils.h b/src/utils.h index 6c5db92..b92ca1c 100644 --- a/src/utils.h +++ b/src/utils.h @@ -20,7 +20,8 @@ typedef struct iterator_t { } iterator_t; list_t clist_create (void); -void clist_add (list_t *, void *, size_t); +void clist_add (list_t *, void *); +void clist_add_s (list_t *, void *, size_t); void clist_add_all (list_t *, list_t *); void clist_remove (list_t *, list_item_t *); iterator_t clist_iterator (list_t *); |