diff -r 3dc9075df822 -r eb9e7bd40a8e src/cx/linked_list.h --- a/src/cx/linked_list.h Sat Jan 29 14:32:04 2022 +0100 +++ b/src/cx/linked_list.h Sun Jan 30 14:19:00 2022 +0100 @@ -55,8 +55,8 @@ * @param item_size the size of each element in bytes * @return the created list */ -CxList cxLinkedListCreate( - CxAllocator allocator, +CxList *cxLinkedListCreate( + CxAllocator *allocator, CxListComparator comparator, size_t item_size ) __attribute__((__nonnull__)); @@ -70,8 +70,8 @@ * @param comparator the comparator for the elements * @return the created list */ -CxList cxPointerLinkedListCreate( - CxAllocator allocator, +CxList *cxPointerLinkedListCreate( + CxAllocator *allocator, CxListComparator comparator ) __attribute__((__nonnull__)); @@ -85,8 +85,8 @@ * @param array the array data * @return the created list */ -CxList cxLinkedListFromArray( - CxAllocator allocator, +CxList *cxLinkedListFromArray( + CxAllocator *allocator, CxListComparator comparator, size_t item_size, size_t num_items, @@ -100,7 +100,7 @@ * * @param list the list */ -void cxLinkedListDestroy(CxList list) __attribute__((__nonnull__)); +void cxLinkedListDestroy(CxList *list) __attribute__((__nonnull__)); /** * Finds the node at a certain index.