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 |