gwenhywfar  5.10.1
Functions
xmldb.c File Reference
#include "xmldb_p.h"
#include <gwenhywfar/text.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/stringlist.h>
#include <gwenhywfar/xml.h>
#include <gwenhywfar/dbio_be.h>
#include <gwenhywfar/syncio_file.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
Include dependency graph for xmldb.c:

Go to the source code of this file.

Functions

GWEN_PLUGINdbio_xmldb_factory (GWEN_PLUGIN_MANAGER *pm, const char *modName, const char *fileName)
 
int GWEN_DBIO__XmlDb_ImportGroup (GWEN_DBIO *dbio, uint32_t flags, GWEN_DB_NODE *data, GWEN_DB_NODE *cfg, GWEN_XMLNODE *node)
 
int GWEN_DBIO__XmlDb_ImportVar (GWEN_UNUSED GWEN_DBIO *dbio, uint32_t flags, GWEN_DB_NODE *data, GWEN_UNUSED GWEN_DB_NODE *cfg, GWEN_XMLNODE *node)
 
void GWEN_DBIO__XmlDb_ReadDataTags (GWEN_XMLNODE *node, GWEN_BUFFER *buf)
 
int GWEN_DBIO_XmlDb__ExportGroup (GWEN_DBIO *dbio, GWEN_DB_NODE *data, GWEN_XMLNODE *node, const char *newName)
 
int GWEN_DBIO_XmlDb__ExportVar (GWEN_UNUSED GWEN_DBIO *dbio, GWEN_DB_NODE *data, GWEN_XMLNODE *node)
 
GWEN_DBIO_CHECKFILE_RESULT GWEN_DBIO_XmlDb_CheckFile (GWEN_DBIO *dbio, const char *fname)
 
int GWEN_DBIO_XmlDb_Export (GWEN_DBIO *dbio, GWEN_SYNCIO *sio, GWEN_DB_NODE *data, GWEN_DB_NODE *cfg, GWEN_UNUSED uint32_t flags)
 
GWEN_DBIOGWEN_DBIO_XmlDb_Factory (GWEN_UNUSED GWEN_PLUGIN *pl)
 
int GWEN_DBIO_XmlDb_Import (GWEN_DBIO *dbio, GWEN_SYNCIO *sio, GWEN_DB_NODE *data, GWEN_DB_NODE *cfg, uint32_t flags)
 

Function Documentation

◆ dbio_xmldb_factory()

GWEN_PLUGIN* dbio_xmldb_factory ( GWEN_PLUGIN_MANAGER pm,
const char *  modName,
const char *  fileName 
)

Definition at line 575 of file xmldb.c.

References GWEN_DBIO_Plugin_new(), GWEN_DBIO_Plugin_SetFactoryFn(), and GWEN_DBIO_XmlDb_Factory().

Here is the call graph for this function:

◆ GWEN_DBIO__XmlDb_ImportGroup()

int GWEN_DBIO__XmlDb_ImportGroup ( GWEN_DBIO dbio,
uint32_t  flags,
GWEN_DB_NODE data,
GWEN_DB_NODE cfg,
GWEN_XMLNODE node 
)

Definition at line 55 of file xmldb.c.

References DBG_ERROR, DBG_INFO, GWEN_DB_GetGroup(), GWEN_DBIO__XmlDb_ImportVar(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_XMLNode_GetData(), GWEN_XMLNode_GetFirstTag(), GWEN_XMLNode_GetNextTag(), and GWEN_XMLNode_GetProperty().

Referenced by GWEN_DBIO_XmlDb_Import().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_DBIO__XmlDb_ImportVar()

int GWEN_DBIO__XmlDb_ImportVar ( GWEN_UNUSED GWEN_DBIO dbio,
uint32_t  flags,
GWEN_DB_NODE data,
GWEN_UNUSED GWEN_DB_NODE cfg,
GWEN_XMLNODE node 
)

◆ GWEN_DBIO__XmlDb_ReadDataTags()

void GWEN_DBIO__XmlDb_ReadDataTags ( GWEN_XMLNODE node,
GWEN_BUFFER buf 
)

◆ GWEN_DBIO_XmlDb__ExportGroup()

int GWEN_DBIO_XmlDb__ExportGroup ( GWEN_DBIO dbio,
GWEN_DB_NODE data,
GWEN_XMLNODE node,
const char *  newName 
)

◆ GWEN_DBIO_XmlDb__ExportVar()

int GWEN_DBIO_XmlDb__ExportVar ( GWEN_UNUSED GWEN_DBIO dbio,
GWEN_DB_NODE data,
GWEN_XMLNODE node 
)

◆ GWEN_DBIO_XmlDb_CheckFile()

GWEN_DBIO_CHECKFILE_RESULT GWEN_DBIO_XmlDb_CheckFile ( GWEN_DBIO dbio,
const char *  fname 
)

◆ GWEN_DBIO_XmlDb_Export()

int GWEN_DBIO_XmlDb_Export ( GWEN_DBIO dbio,
GWEN_SYNCIO sio,
GWEN_DB_NODE data,
GWEN_DB_NODE cfg,
GWEN_UNUSED uint32_t  flags 
)

◆ GWEN_DBIO_XmlDb_Factory()

GWEN_DBIO* GWEN_DBIO_XmlDb_Factory ( GWEN_UNUSED GWEN_PLUGIN pl)

Definition at line 562 of file xmldb.c.

References GWEN_DBIO_new(), GWEN_DBIO_SetCheckFileFn(), GWEN_DBIO_SetExportFn(), GWEN_DBIO_SetImportFn(), GWEN_DBIO_XmlDb_CheckFile(), GWEN_DBIO_XmlDb_Export(), and GWEN_DBIO_XmlDb_Import().

Referenced by dbio_xmldb_factory().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_DBIO_XmlDb_Import()

int GWEN_DBIO_XmlDb_Import ( GWEN_DBIO dbio,
GWEN_SYNCIO sio,
GWEN_DB_NODE data,
GWEN_DB_NODE cfg,
uint32_t  flags 
)