gwenhywfar 5.10.1
Macros | 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.

Macros

#define PRI_SIZET   "zd"
 

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_UNUSED GWEN_DBIO *dbio, GWEN_UNUSED GWEN_SYNCIO *sio, GWEN_UNUSED GWEN_DB_NODE *data, GWEN_UNUSED GWEN_DB_NODE *cfg, GWEN_UNUSED uint32_t flags)
 
GWEN_DBIOGWEN_DBIO_OldDb_Factory (GWEN_UNUSED GWEN_PLUGIN *pl)
 
int GWEN_DBIO_OldDb_Import (GWEN_UNUSED GWEN_DBIO *dbio, GWEN_SYNCIO *sio, GWEN_DB_NODE *data, GWEN_UNUSED GWEN_DB_NODE *cfg, uint32_t flags)
 

Macro Definition Documentation

◆ PRI_SIZET

#define PRI_SIZET   "zd"

Definition at line 62 of file olddb.c.

Function Documentation

◆ dbio_olddb_factory()

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

Definition at line 401 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_DBIO_OldDb__ParseLine()

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

Definition at line 66 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(), NULL, and PRI_SIZET.

Referenced by GWEN_DBIO_OldDb_Import().

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

◆ GWEN_DBIO_OldDb_CheckFile()

GWEN_DBIO_CHECKFILE_RESULT GWEN_DBIO_OldDb_CheckFile ( GWEN_DBIO dbio,
const char *  fname 
)

◆ GWEN_DBIO_OldDb_Export()

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

Definition at line 342 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_OldDb_Factory()

GWEN_DBIO * GWEN_DBIO_OldDb_Factory ( GWEN_UNUSED GWEN_PLUGIN pl)

Definition at line 388 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:

◆ GWEN_DBIO_OldDb_Import()

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