|
/***************************************************************************
|
|
$RCSfile$
|
|
-------------------
|
|
cvs : $Id: olddb_p.h 609 2004-11-26 20:39:52Z aquamaniac $
|
|
begin : Thu Oct 30 2003
|
|
copyright : (C) 2003 by Martin Preuss
|
|
email : martin@libchipcard.de
|
|
|
|
***************************************************************************
|
|
* *
|
|
* This library is free software; you can redistribute it and/or *
|
|
* modify it under the terms of the GNU Lesser General Public *
|
|
* License as published by the Free Software Foundation; either *
|
|
* version 2.1 of the License, or (at your option) any later version. *
|
|
* *
|
|
* This library is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
|
|
* Lesser General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU Lesser General Public *
|
|
* License along with this library; if not, write to the Free Software *
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
|
|
* MA 02111-1307 USA *
|
|
* *
|
|
***************************************************************************/
|
|
|
|
#ifndef GWENHYWFAR_PLUGIN_XMLDB_H
|
|
#define GWENHYWFAR_PLUGIN_XMLDB_H
|
|
|
|
|
|
#include <gwenhywfar/db.h>
|
|
#include <gwenhywfar/dbio.h>
|
|
#include <gwenhywfar/stringlist.h>
|
|
|
|
|
|
GWENHYWFAR_EXPORT
|
|
GWEN_PLUGIN *dbio_xmldb_factory(GWEN_PLUGIN_MANAGER *pm,
|
|
const char *modName,
|
|
const char *fileName);
|
|
|
|
|
|
static int GWEN_DBIO_XmlDb_Export(GWEN_DBIO *dbio,
|
|
GWEN_SYNCIO *sio,
|
|
GWEN_DB_NODE *data,
|
|
GWEN_DB_NODE *cfg,
|
|
uint32_t flags);
|
|
|
|
static int GWEN_DBIO_XmlDb_Import(GWEN_DBIO *dbio,
|
|
GWEN_SYNCIO *sio,
|
|
GWEN_DB_NODE *data,
|
|
GWEN_DB_NODE *cfg,
|
|
uint32_t flags);
|
|
|
|
static GWEN_DBIO_CHECKFILE_RESULT GWEN_DBIO_XmlDb_CheckFile(GWEN_DBIO *dbio,
|
|
const char *fname);
|
|
|
|
|
|
|
|
static int GWEN_DBIO__XmlDb_ImportGroup(GWEN_DBIO *dbio,
|
|
uint32_t flags,
|
|
GWEN_DB_NODE *data,
|
|
GWEN_DB_NODE *cfg,
|
|
GWEN_XMLNODE *node);
|
|
static void GWEN_DBIO__XmlDb_ReadDataTags(GWEN_XMLNODE *node, GWEN_BUFFER *buf);
|
|
static int GWEN_DBIO__XmlDb_ImportVar(GWEN_DBIO *dbio,
|
|
uint32_t flags,
|
|
GWEN_DB_NODE *data,
|
|
GWEN_DB_NODE *cfg,
|
|
GWEN_XMLNODE *node);
|
|
|
|
|
|
static int GWEN_DBIO_XmlDb__ExportVar(GWEN_DBIO *dbio,
|
|
GWEN_DB_NODE *data,
|
|
GWEN_XMLNODE *node);
|
|
|
|
static int GWEN_DBIO_XmlDb__ExportGroup(GWEN_DBIO *dbio,
|
|
GWEN_DB_NODE *data,
|
|
GWEN_XMLNODE *node,
|
|
const char *newName);
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|