Coconut Framework  beta
CNType.h
Go to the documentation of this file.
1 
8 #ifndef CNTYPE_H
9 #define CNTYPE_H
10 
11 #include "CNForwarders.h"
12 
14 typedef unsigned int CNBoolean ;
15 
17 static const CNBoolean CNTrue = 1 ;
19 static const CNBoolean CNFalse = 0 ;
20 
22 typedef int (*CNCompareDataFuncRef)(const void * s0, const void * s1, void * info) ;
23 
25 typedef CNBoolean (*CNMatchDataFuncRef)(const void * src, void * info) ;
26 
28 typedef void * (*CNCloneDataFuncRef)(const void * src, void * info, struct CNResource * resource) ;
29 
31 typedef void (*CNDestroyDataFuncRef)(void * src, void * info, struct CNResource * resource);
32 
33 #endif /* CNTYPE_H */
34 
void(* CNDestroyDataFuncRef)(void *src, void *info, struct CNResource *resource)
Function to destroy item.
Definition: CNType.h:31
Forward declaration of data types.
static const CNBoolean CNTrue
Boolean value for TRUE.
Definition: CNType.h:17
CNBoolean(* CNMatchDataFuncRef)(const void *src, void *info)
Function to maching objects.
Definition: CNType.h:25
static const CNBoolean CNFalse
Boolean value for FALSE.
Definition: CNType.h:19
unsigned int CNBoolean
Boolean type.
Definition: CNType.h:14
int(* CNCompareDataFuncRef)(const void *s0, const void *s1, void *info)
Function to compare items in CNHashTable.
Definition: CNType.h:22