libdacav 0.9.0
|
00001 /* 00002 * Copyright 2009 2010 Giovanni Simoni 00003 * 00004 * This file is part of LibDacav. 00005 * 00006 * LibDacav is free software: you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation, either version 3 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * LibDacav is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with LibDacav. If not, see <http://www.gnu.org/licenses/>. 00018 * 00019 */ 00020 00026 #ifndef __defined_dacav_types_h 00027 #define __defined_dacav_types_h 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif 00032 00035 00045 typedef void (*dfree_cb_t) (void *obj); 00046 00062 typedef void * (*diter_cb_t) (void *udata, void *data); 00063 00073 typedef void * (*dcreate_cb_t) (void *src); 00074 00085 typedef void * (*dcopy_cb_t) (const void *src); 00086 00102 typedef int (dfilter_cb_t) (void *udata, void *data); 00103 00112 typedef int (*dcmp_cb_t) (const void *v0, const void *v1); 00113 00123 typedef struct { 00124 dfree_cb_t rm; 00125 dcopy_cb_t cp; 00126 } dcprm_t; 00127 00130 #ifdef __cplusplus 00131 } 00132 #endif 00133 00134 #endif // __defined_dacav_types_h