Sat, 31 Dec 2011 18:04:28 +0100
Fixed fatal super bug
1 /*
2 *
3 */
5 #ifndef LIST_H
6 #define LIST_H
8 #include "ucx.h"
9 #include <stddef.h>
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
15 typedef struct UcxList UcxList;
16 struct UcxList {
17 void *data;
18 UcxList *next;
19 };
21 UcxList *ucx_list_append(UcxList *l, void *data);
22 UcxList *ucx_list_prepend(UcxList *l, void *data);
23 UcxList *ucx_list_concat(UcxList *l1, UcxDlist *l2);
24 UcxList *ucx_list_last(UcxList *l);
25 UcxList *ucx_list_get(UcxList *l, int index);
26 size_t ucx_list_size(UcxList *l);
27 void ucx_list_foreach(UcxList *l, ucx_callback fnc, void *data);
30 #ifdef __cplusplus
31 }
32 #endif
34 #endif /* LIST_H */