Tue, 19 Mar 2013 17:38:32 +0100
webdav uses the vfs api
15
cff9c4101dd7
Replaced old utils with ucx
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
14
diff
changeset
|
1 | /* |
13 | 2 | * File: ucx.h |
3 | * Author: olaf | |
4 | * | |
5 | * Created on 31. Dezember 2011, 17:17 | |
6 | */ | |
7 | ||
8 | #ifndef UCX_H | |
9 | #define UCX_H | |
10 | ||
11 | #include <stdlib.h> | |
12 | ||
13 | #ifdef __cplusplus | |
14 | extern "C" { | |
15 | #endif | |
16 | ||
31 | 17 | #define UCX_FOREACH(type,list,elem) \ |
18 | for (type elem = list ; elem != NULL ; elem = elem->next) | |
19 | ||
15
cff9c4101dd7
Replaced old utils with ucx
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
14
diff
changeset
|
20 | /* element1,element2,custom data -> {-1,0,1} */ |
cff9c4101dd7
Replaced old utils with ucx
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
14
diff
changeset
|
21 | typedef int(*cmp_func)(void*,void*,void*); |
cff9c4101dd7
Replaced old utils with ucx
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
14
diff
changeset
|
22 | |
cff9c4101dd7
Replaced old utils with ucx
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
14
diff
changeset
|
23 | /* element,custom data -> copy of element */ |
cff9c4101dd7
Replaced old utils with ucx
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
14
diff
changeset
|
24 | typedef void*(*copy_func)(void*,void*); |
cff9c4101dd7
Replaced old utils with ucx
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
14
diff
changeset
|
25 | |
13 | 26 | #ifdef __cplusplus |
27 | } | |
28 | #endif | |
29 | ||
30 | #endif /* UCX_H */ | |
31 |