src/server/ucx/ucx.h

Sat, 14 Jan 2012 14:33:38 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 14 Jan 2012 14:33:38 +0100
changeset 15
cff9c4101dd7
parent 14
b8bf95b39952
child 31
280250e45ba6
permissions
-rw-r--r--

Replaced old utils with ucx

/* 
 * File:   ucx.h
 * Author: olaf
 *
 * Created on 31. Dezember 2011, 17:17
 */

#ifndef UCX_H
#define	UCX_H

#include <stdlib.h>

#ifdef	__cplusplus
extern "C" {
#endif

/* source,data -> errno */
typedef int(*ucx_callback)(void*,void*);

/* element1,element2,custom data -> {-1,0,1} */
typedef int(*cmp_func)(void*,void*,void*);

/* element,custom data -> copy of element */
typedef void*(*copy_func)(void*,void*);

#ifdef	__cplusplus
}
#endif

#endif	/* UCX_H */

mercurial