Mon, 16 Jan 2012 14:06:52 +0100
Added server.conf parser
15
cff9c4101dd7
Replaced old utils with ucx
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
14
diff
changeset
|
1 | /* |
cff9c4101dd7
Replaced old utils with ucx
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
14
diff
changeset
|
2 | * |
13 | 3 | */ |
4 | ||
5 | #ifndef DLIST_H | |
6 | #define DLIST_H | |
7 | ||
8 | #include "ucx.h" | |
9 | #include <stddef.h> | |
10 | ||
11 | #ifdef __cplusplus | |
12 | extern "C" { | |
13 | #endif | |
14 | ||
15 | typedef struct UcxDlist UcxDlist; | |
16 | struct UcxDlist { | |
17 | void *data; | |
18 | UcxDlist *next; | |
19 | UcxDlist *prev; | |
20 | }; | |
21 | ||
15
cff9c4101dd7
Replaced old utils with ucx
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
14
diff
changeset
|
22 | UcxDlist *ucx_dlist_clone(UcxDlist *l, copy_func fnc, void* data); |
cff9c4101dd7
Replaced old utils with ucx
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
14
diff
changeset
|
23 | int ucx_dlist_equals(UcxDlist *l1, UcxDlist *l2, cmp_func fnc, void* data); |
cff9c4101dd7
Replaced old utils with ucx
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
14
diff
changeset
|
24 | |
13 | 25 | void ucx_dlist_free(UcxDlist *l); |
26 | UcxDlist *ucx_dlist_append(UcxDlist *l, void *data); | |
27 | UcxDlist *ucx_dlist_prepend(UcxDlist *l, void *data); | |
28 | UcxDlist *ucx_dlist_concat(UcxDlist *l1, UcxDlist *l2); | |
29 | UcxDlist *ucx_dlist_last(UcxDlist *l); | |
30 | UcxDlist *ucx_dlist_get(UcxDlist *l, int index); | |
31 | size_t ucx_dlist_size(UcxDlist *l); | |
32 | void ucx_dlist_foreach(UcxDlist *l, ucx_callback fnc, void* data); | |
33 | ||
34 | /* dlist specific functions */ | |
35 | UcxDlist *ucx_dlist_first(UcxDlist *l); | |
36 | ||
37 | #ifdef __cplusplus | |
38 | } | |
39 | #endif | |
40 | ||
41 | #endif /* DLIST_H */ | |
42 |