src/cx/linked_list.h

changeset 412
af766caea48d
parent 409
5d167af0eadb
child 415
067aa769796a
equal deleted inserted replaced
411:2842f729caab 412:af766caea48d
36 36
37 int cx_linked_list_add(void **begin, void **end, ptrdiff_t loc_prev, ptrdiff_t loc_next, void *new_node); 37 int cx_linked_list_add(void **begin, void **end, ptrdiff_t loc_prev, ptrdiff_t loc_next, void *new_node);
38 38
39 extern cx_list_class cx_linked_list_class; 39 extern cx_list_class cx_linked_list_class;
40 40
41 typedef struct {
42 void *begin;
43 ptrdiff_t loc_prev;
44 ptrdiff_t loc_next;
45 size_t item_size;
46 } CxLinkedListDesc;
47
48 CxList cxLinkedListCreate(CxAllocator allocator, CxListComparator comparator, size_t item_size); 41 CxList cxLinkedListCreate(CxAllocator allocator, CxListComparator comparator, size_t item_size);
49
50 CxList cxLinkedListWrap(CxAllocator allocator, CxListComparator comparator, CxLinkedListDesc desc);
51 42
52 void cxLinkedListDestroy(CxList list); 43 void cxLinkedListDestroy(CxList list);
53 44
54 size_t cxLinkedListRecalculateSize(CxList list); 45 size_t cxLinkedListRecalculateSize(CxList list);
55 46

mercurial