1 /*************************************************************************** 2 $RCSfile$ 3 ------------------- 4 cvs : $Id$ 5 begin : Wed Mar 31 2004 6 copyright : (C) 2004 by Martin Preuss 7 email : martin@libchipcard.de 8 9 *************************************************************************** 10 * * 11 * This library is free software; you can redistribute it and/or * 12 * modify it under the terms of the GNU Lesser General Public * 13 * License as published by the Free Software Foundation; either * 14 * version 2.1 of the License, or (at your option) any later version. * 15 * * 16 * This library is distributed in the hope that it will be useful, * 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 19 * Lesser General Public License for more details. * 20 * * 21 * You should have received a copy of the GNU Lesser General Public * 22 * License along with this library; if not, write to the Free Software * 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * 24 * MA 02111-1307 USA * 25 * * 26 ***************************************************************************/ 27 28 29 /** @file gwenhywfar/dbio.h */ 30 31 #ifndef GWENHYWFAR_DBIO_P_H 32 #define GWENHYWFAR_DBIO_P_H 33 34 35 #include "dbio_l.h" 36 #include <gwenhywfar/libloader.h> 37 38 39 typedef struct GWEN_DBIO_PLUGIN GWEN_DBIO_PLUGIN; 40 struct GWEN_DBIO_PLUGIN { 41 GWEN_DBIO_PLUGIN_FACTORYFN factoryFn; 42 }; 43 void GWENHYWFAR_CB GWEN_DBIO_Plugin_FreeData(void *bp, void *p); 44 45 46 47 struct GWEN_DBIO { 48 GWEN_LIST_ELEMENT(GWEN_DBIO) 49 GWEN_INHERIT_ELEMENT(GWEN_DBIO) 50 /* No trailing semicolon here because this is a macro call */ 51 GWEN_DBIO_IMPORTFN importFn; 52 GWEN_DBIO_EXPORTFN exportFn; 53 GWEN_DBIO_CHECKFILEFN checkFileFn; 54 55 char *name; 56 char *descr; 57 58 uint32_t usage; 59 }; 60 61 62 #endif /* GWENHYWFAR_DBIO_P_H */ 63 64 65