gwenhywfar  4.99.8beta
Functions
olddb.c File Reference
#include "olddb_p.h"
#include <gwenhywfar/text.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/stringlist.h>
#include <gwenhywfar/dbio_be.h>
#include <gwenhywfar/syncio_file.h>
#include <gwenhywfar/fastbuffer.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 olddb.c:

Go to the source code of this file.

Functions

GWEN_PLUGINdbio_olddb_factory (GWEN_PLUGIN_MANAGER *pm, const char *modName, const char *fileName)
 
GWEN_DB_NODEGWEN_DBIO_OldDb__ParseLine (GWEN_DB_NODE *root, GWEN_DB_NODE *group, const char *s, uint32_t mode)
 
GWEN_DBIO_CHECKFILE_RESULT GWEN_DBIO_OldDb_CheckFile (GWEN_DBIO *dbio, const char *fname)
 
int GWEN_DBIO_OldDb_Export (GWEN_DBIO *dbio, GWEN_SYNCIO *sio, GWEN_DB_NODE *data, GWEN_DB_NODE *cfg, uint32_t flags)
 
GWEN_DBIOGWEN_DBIO_OldDb_Factory (GWEN_PLUGIN *pl)
 
int GWEN_DBIO_OldDb_Import (GWEN_DBIO *dbio, GWEN_SYNCIO *sio, GWEN_DB_NODE *data, GWEN_DB_NODE *cfg, uint32_t flags)
 

Function Documentation

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

Definition at line 382 of file olddb.c.

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

Here is the call graph for this function:

GWEN_DB_NODE* GWEN_DBIO_OldDb__ParseLine ( GWEN_DB_NODE root,
GWEN_DB_NODE group,
const char *  s,
uint32_t  mode 
)

Definition at line 52 of file olddb.c.

References DBG_DEBUG, DBG_ERROR, DBG_VERBOUS, DBG_WARN, GWEN_Buffer_AppendByte(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_GetUsedBytes(), GWEN_Buffer_new(), GWEN_Buffer_Reset(), GWEN_DB_GetGroup(), GWEN_DB_SetCharValue(), and NULL.

Referenced by GWEN_DBIO_OldDb_Import().

Here is the call graph for this function:

Here is the caller graph for this function:

GWEN_DBIO_CHECKFILE_RESULT GWEN_DBIO_OldDb_CheckFile ( GWEN_DBIO dbio,
const char *  fname 
)
int GWEN_DBIO_OldDb_Export ( GWEN_DBIO dbio,
GWEN_SYNCIO sio,
GWEN_DB_NODE data,
GWEN_DB_NODE cfg,
uint32_t  flags 
)

Definition at line 326 of file olddb.c.

References DBG_ERROR, GWEN_ERROR_GENERIC, and GWEN_LOGDOMAIN.

Referenced by GWEN_DBIO_OldDb_Factory().

Here is the caller graph for this function:

GWEN_DBIO* GWEN_DBIO_OldDb_Factory ( GWEN_PLUGIN pl)

Definition at line 370 of file olddb.c.

References GWEN_DBIO_new(), GWEN_DBIO_OldDb_CheckFile(), GWEN_DBIO_OldDb_Export(), GWEN_DBIO_OldDb_Import(), GWEN_DBIO_SetCheckFileFn(), GWEN_DBIO_SetExportFn(), and GWEN_DBIO_SetImportFn().

Referenced by dbio_olddb_factory().

Here is the call graph for this function:

Here is the caller graph for this function:

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