gwenhywfar
4.3.1
|
00001 /*************************************************************************** 00002 $RCSfile$ 00003 ------------------- 00004 cvs : $Id: dbio.h 1107 2007-01-07 21:17:05Z martin $ 00005 begin : Wed Mar 31 2004 00006 copyright : (C) 2004 by Martin Preuss 00007 email : martin@libchipcard.de 00008 00009 *************************************************************************** 00010 * * 00011 * This library is free software; you can redistribute it and/or * 00012 * modify it under the terms of the GNU Lesser General Public * 00013 * License as published by the Free Software Foundation; either * 00014 * version 2.1 of the License, or (at your option) any later version. * 00015 * * 00016 * This library is distributed in the hope that it will be useful, * 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00019 * Lesser General Public License for more details. * 00020 * * 00021 * You should have received a copy of the GNU Lesser General Public * 00022 * License along with this library; if not, write to the Free Software * 00023 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * 00024 * MA 02111-1307 USA * 00025 * * 00026 ***************************************************************************/ 00027 00028 00033 #ifndef GWENHYWFAR_DBIO_BE_H 00034 #define GWENHYWFAR_DBIO_BE_H 00035 00036 #include <gwenhywfar/dbio.h> 00037 00038 00039 00040 typedef int (*GWEN_DBIO_IMPORTFN)(GWEN_DBIO *dbio, 00041 GWEN_SYNCIO *sio, 00042 GWEN_DB_NODE *db, 00043 GWEN_DB_NODE *params, 00044 uint32_t flags); 00045 00046 typedef int (*GWEN_DBIO_EXPORTFN)(GWEN_DBIO *dbio, 00047 GWEN_SYNCIO *sio, 00048 GWEN_DB_NODE *db, 00049 GWEN_DB_NODE *params, 00050 uint32_t flags); 00051 00052 typedef GWEN_DBIO_CHECKFILE_RESULT (*GWEN_DBIO_CHECKFILEFN)(GWEN_DBIO *dbio, const char *fname); 00053 00054 00055 00056 GWENHYWFAR_API 00057 GWEN_PLUGIN *GWEN_DBIO_Plugin_new(GWEN_PLUGIN_MANAGER *pm, 00058 const char *name, 00059 const char *fileName); 00060 00061 GWENHYWFAR_API 00062 void GWEN_DBIO_Plugin_SetFactoryFn(GWEN_PLUGIN *pl, 00063 GWEN_DBIO_PLUGIN_FACTORYFN f); 00064 00065 00073 GWENHYWFAR_API 00074 GWEN_DBIO *GWEN_DBIO_new(const char *name, const char *descr); 00075 00079 GWENHYWFAR_API 00080 void GWEN_DBIO_SetImportFn(GWEN_DBIO *dbio, GWEN_DBIO_IMPORTFN f); 00081 00085 GWENHYWFAR_API 00086 void GWEN_DBIO_SetExportFn(GWEN_DBIO *dbio, GWEN_DBIO_EXPORTFN f); 00087 00088 GWENHYWFAR_API 00089 void GWEN_DBIO_SetCheckFileFn(GWEN_DBIO *dbio, GWEN_DBIO_CHECKFILEFN f); 00090 00094 #endif 00095