aboutsummaryrefslogtreecommitdiff
path: root/include/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/list.h')
-rw-r--r--include/list.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/list.h b/include/list.h
index 4447884..b6342d1 100644
--- a/include/list.h
+++ b/include/list.h
@@ -14,9 +14,16 @@ typedef struct {
uint8_t *elements;
} list_t;
+typedef struct {
+ void *ptr;
+} ptr_wrapper_t;
+
list_t *list_create(size_t element_size);
void list_add(list_t *list, void *element);
void *list_get(list_t *list, size_t i);
void list_delete(list_t *list);
+void *list_find_corresponding_value_from_ptr_wrapper(list_t *keys,
+ list_t *values,
+ char *key);
#endif