dbio_be.h

Go to the documentation of this file.
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_IO_LAYER *io,
00042                                   GWEN_DB_NODE *db,
00043                                   GWEN_DB_NODE *params,
00044                                   uint32_t flags,
00045                                   uint32_t guiid,
00046                                   int msecs);
00047 
00048 typedef int (*GWEN_DBIO_EXPORTFN)(GWEN_DBIO *dbio,
00049                                   GWEN_IO_LAYER *io,
00050                                   GWEN_DB_NODE *db,
00051                                   GWEN_DB_NODE *params,
00052                                   uint32_t flags,
00053                                   uint32_t guiid,
00054                                   int msecs);
00055 
00056 typedef GWEN_DBIO_CHECKFILE_RESULT (*GWEN_DBIO_CHECKFILEFN)(GWEN_DBIO *dbio,
00057                                                             const char *fname,
00058                                                             uint32_t guiid,
00059                                                             int msecs);
00060 
00061 
00062 
00063 GWENHYWFAR_API
00064 GWEN_PLUGIN *GWEN_DBIO_Plugin_new(GWEN_PLUGIN_MANAGER *pm,
00065                                   const char *name,
00066                                   const char *fileName);
00067 
00068 GWENHYWFAR_API
00069 void GWEN_DBIO_Plugin_SetFactoryFn(GWEN_PLUGIN *pl,
00070                                    GWEN_DBIO_PLUGIN_FACTORYFN f);
00071 
00072 
00080 GWENHYWFAR_API
00081 GWEN_DBIO *GWEN_DBIO_new(const char *name, const char *descr);
00082 
00086 GWENHYWFAR_API
00087 void GWEN_DBIO_SetImportFn(GWEN_DBIO *dbio, GWEN_DBIO_IMPORTFN f);
00088 
00092 GWENHYWFAR_API
00093 void GWEN_DBIO_SetExportFn(GWEN_DBIO *dbio, GWEN_DBIO_EXPORTFN f);
00094 
00095 GWENHYWFAR_API
00096 void GWEN_DBIO_SetCheckFileFn(GWEN_DBIO *dbio, GWEN_DBIO_CHECKFILEFN f);
00097 
00101 #endif
00102 

Generated on Thu Aug 20 13:54:38 2009 for gwenhywfar by  doxygen 1.5.9