ucx/list.h

changeset 5
a1740117e2b7
parent 2
79646375a420
child 6
50b5fe7c577f
equal deleted inserted replaced
4:dbc31727b38e 5:a1740117e2b7
7 7
8 #ifdef __cplusplus 8 #ifdef __cplusplus
9 extern "C" { 9 extern "C" {
10 #endif 10 #endif
11 11
12 typedef struct UcxList UcxList;
13 struct UcxList {
14 void *data;
15 UcxList *next;
16 };
12 17
18 UcxList *ucx_dlist_append(UcxList *l, void *data);
19 UcxList *ucx_dlist_prepend(UcxList *l, void *data);
20 UcxList *ucx_dlist_concat(UcxList *l1, UcxDlist *l2);
21 UcxList *ucx_dlist_last(UcxList *l);
22 UcxList *ucx_dlist_get(UcxList *l, int index);
23 size_t *ucx_dlist_size(UcxList *l);
13 24
14 25
15 #ifdef __cplusplus 26 #ifdef __cplusplus
16 } 27 }
17 #endif 28 #endif

mercurial