|
gwenhywfar 5.14.1
|
#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>
Go to the source code of this file.
Macros | |
| #define | PRI_SIZET "zd" |
Functions | |
| GWEN_PLUGIN * | dbio_olddb_factory (GWEN_PLUGIN_MANAGER *pm, const char *modName, const char *fileName) |
| GWEN_DB_NODE * | GWEN_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_DBIO * | GWEN_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) |
| 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().

| 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().


| GWEN_DBIO_CHECKFILE_RESULT GWEN_DBIO_OldDb_CheckFile | ( | GWEN_DBIO * | dbio, |
| const char * | fname ) |
Definition at line 354 of file olddb.c.
References DBG_INFO, GWEN_DB_FLAGS_DEFAULT, GWEN_DB_Group_free(), GWEN_DB_Group_new(), GWEN_DBIO_CheckFileResultNotOk, GWEN_DBIO_CheckFileResultUnknown, GWEN_DBIO_OldDb_Import(), GWEN_LOGDOMAIN, GWEN_SyncIo_AddFlags(), GWEN_SyncIo_Connect(), GWEN_SyncIo_Disconnect(), GWEN_SyncIo_File_CreationMode_OpenExisting, GWEN_SYNCIO_FILE_FLAGS_READ, GWEN_SyncIo_File_new(), and GWEN_SyncIo_free().
Referenced by GWEN_DBIO_OldDb_Factory().


| 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, GWEN_LOGDOMAIN, and GWEN_UNUSED.
Referenced by 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(), GWEN_DBIO_SetImportFn(), and GWEN_UNUSED.
Referenced by dbio_olddb_factory().


| 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 ) |
Definition at line 296 of file olddb.c.
References DBG_ERROR, DBG_ERROR_ERR, GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_Buffer_Reset(), GWEN_DBIO_OldDb__ParseLine(), GWEN_ERROR_BAD_DATA, GWEN_ERROR_EOF, GWEN_FastBuffer_free(), GWEN_FastBuffer_new(), GWEN_FastBuffer_ReadLineToBuffer(), and GWEN_UNUSED.
Referenced by GWEN_DBIO_OldDb_CheckFile(), and GWEN_DBIO_OldDb_Factory().

