src/server/ucx/ucx.h

changeset 15
cff9c4101dd7
parent 14
b8bf95b39952
child 31
280250e45ba6
equal deleted inserted replaced
14:b8bf95b39952 15:cff9c4101dd7
1 /* 1 /*
2 * File: ucx.h 2 * File: ucx.h
3 * Author: olaf 3 * Author: olaf
4 * 4 *
5 * Created on 31. Dezember 2011, 17:17 5 * Created on 31. Dezember 2011, 17:17
6 */ 6 */
12 12
13 #ifdef __cplusplus 13 #ifdef __cplusplus
14 extern "C" { 14 extern "C" {
15 #endif 15 #endif
16 16
17 /* source,data -> errno */
17 typedef int(*ucx_callback)(void*,void*); 18 typedef int(*ucx_callback)(void*,void*);
19
20 /* element1,element2,custom data -> {-1,0,1} */
21 typedef int(*cmp_func)(void*,void*,void*);
22
23 /* element,custom data -> copy of element */
24 typedef void*(*copy_func)(void*,void*);
18 25
19 #ifdef __cplusplus 26 #ifdef __cplusplus
20 } 27 }
21 #endif 28 #endif
22 29

mercurial