ucx/ucx.h

Sat, 14 Jan 2012 13:07:18 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 14 Jan 2012 13:07:18 +0100
changeset 21
d599fefc7620
parent 18
69636f81db31
child 26
59f147baea31
permissions
-rw-r--r--

merge

     1 /* 
     2  * File:   ucx.h
     3  * Author: olaf
     4  *
     5  * Created on 31. Dezember 2011, 17:17
     6  */
     8 #ifndef UCX_H
     9 #define	UCX_H
    11 #include <stdlib.h>
    13 #ifdef	__cplusplus
    14 extern "C" {
    15 #endif
    17 /* source,data -> errno */
    18 typedef int(*ucx_callback)(void*,void*);
    20 /* element1,element2,custom data -> {-1,0,1} */
    21 typedef int(*cmp_func)(void*,void*,void*);
    23 /* element,custom data -> copy of element */
    24 typedef void*(*copy_func)(void*,void*);
    26 #ifdef	__cplusplus
    27 }
    28 #endif
    30 #endif	/* UCX_H */

mercurial