Sat, 31 Dec 2011 17:54:52 +0100
added list specification
1 /*
2 *
3 */
5 #ifndef LIST_H
6 #define LIST_H
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
12 typedef struct UcxList UcxList;
13 struct UcxList {
14 void *data;
15 UcxList *next;
16 };
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);
26 #ifdef __cplusplus
27 }
28 #endif
30 #endif /* LIST_H */