gwenhywfar 5.12.0
dbio_be.h
Go to the documentation of this file.
1/***************************************************************************
2 $RCSfile$
3 -------------------
4 cvs : $Id: dbio.h 1107 2007-01-07 21:17:05Z martin $
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
33#ifndef GWENHYWFAR_DBIO_BE_H
34#define GWENHYWFAR_DBIO_BE_H
35
36#include <gwenhywfar/dbio.h>
37
38
39
40typedef int (*GWEN_DBIO_IMPORTFN)(GWEN_DBIO *dbio,
41 GWEN_SYNCIO *sio,
42 GWEN_DB_NODE *db,
43 GWEN_DB_NODE *params,
44 uint32_t flags);
45
46typedef int (*GWEN_DBIO_EXPORTFN)(GWEN_DBIO *dbio,
47 GWEN_SYNCIO *sio,
48 GWEN_DB_NODE *db,
49 GWEN_DB_NODE *params,
50 uint32_t flags);
51
53
54
55
58 const char *name,
59 const char *fileName);
60
64
65
74GWEN_DBIO *GWEN_DBIO_new(const char *name, const char *descr);
75
81
87
90
94#endif
95
struct GWEN_DB_NODE GWEN_DB_NODE
Definition db.h:228
This file provides the GWEN DB import/export framework.
GWEN_DBIO_CHECKFILE_RESULT
Definition dbio.h:79
struct GWEN_DBIO GWEN_DBIO
Definition dbio.h:43
GWEN_DBIO *(* GWEN_DBIO_PLUGIN_FACTORYFN)(GWEN_PLUGIN *pl)
Definition dbio.h:92
GWENHYWFAR_API void GWEN_DBIO_SetCheckFileFn(GWEN_DBIO *dbio, GWEN_DBIO_CHECKFILEFN f)
int(* GWEN_DBIO_IMPORTFN)(GWEN_DBIO *dbio, GWEN_SYNCIO *sio, GWEN_DB_NODE *db, GWEN_DB_NODE *params, uint32_t flags)
Definition dbio_be.h:40
GWEN_DBIO_CHECKFILE_RESULT(* GWEN_DBIO_CHECKFILEFN)(GWEN_DBIO *dbio, const char *fname)
Definition dbio_be.h:52
GWENHYWFAR_API void GWEN_DBIO_SetImportFn(GWEN_DBIO *dbio, GWEN_DBIO_IMPORTFN f)
GWENHYWFAR_API void GWEN_DBIO_SetExportFn(GWEN_DBIO *dbio, GWEN_DBIO_EXPORTFN f)
GWENHYWFAR_API void GWEN_DBIO_Plugin_SetFactoryFn(GWEN_PLUGIN *pl, GWEN_DBIO_PLUGIN_FACTORYFN f)
GWENHYWFAR_API GWEN_PLUGIN * GWEN_DBIO_Plugin_new(GWEN_PLUGIN_MANAGER *pm, const char *name, const char *fileName)
int(* GWEN_DBIO_EXPORTFN)(GWEN_DBIO *dbio, GWEN_SYNCIO *sio, GWEN_DB_NODE *db, GWEN_DB_NODE *params, uint32_t flags)
Definition dbio_be.h:46
GWENHYWFAR_API GWEN_DBIO * GWEN_DBIO_new(const char *name, const char *descr)
#define GWENHYWFAR_API
struct GWEN_PLUGIN_MANAGER GWEN_PLUGIN_MANAGER
Definition plugin.h:37
struct GWEN_PLUGIN GWEN_PLUGIN
Definition plugin.h:36
struct GWEN_SYNCIO GWEN_SYNCIO
Definition syncio.h:40