gwenhywfar  5.4.1
Macros | Functions
csv.c File Reference
#include "csv_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 <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 csv.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG
 

Functions

GWEN_PLUGINdbio_csv_factory (GWEN_PLUGIN_MANAGER *pm, const char *modName, const char *fileName)
 
int GWEN_CSV_GetNameAndIndex (const char *name, char *buffer, unsigned int size)
 
int GWEN_DBIO_CSV__ReadLine (GWEN_FAST_BUFFER *fb, GWEN_STRINGLIST *sl)
 
GWEN_DBIO_CHECKFILE_RESULT GWEN_DBIO_CSV_CheckFile (GWEN_UNUSED GWEN_DBIO *dbio, const char *fname)
 
int GWEN_DBIO_CSV_Export (GWEN_DBIO *dbio, GWEN_SYNCIO *sio, GWEN_DB_NODE *data, GWEN_DB_NODE *cfg, GWEN_UNUSED uint32_t flags)
 
GWEN_DBIOGWEN_DBIO_CSV_Factory (GWEN_UNUSED GWEN_PLUGIN *pl)
 
int GWEN_DBIO_CSV_Import (GWEN_DBIO *dbio, GWEN_SYNCIO *sio, GWEN_DB_NODE *data, GWEN_DB_NODE *cfg, GWEN_UNUSED uint32_t flags)
 

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 31 of file csv.c.

Function Documentation

◆ dbio_csv_factory()

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

Definition at line 662 of file csv.c.

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

Here is the call graph for this function:

◆ GWEN_CSV_GetNameAndIndex()

int GWEN_CSV_GetNameAndIndex ( const char *  name,
char *  buffer,
unsigned int  size 
)

Definition at line 51 of file csv.c.

References DBG_INFO.

Referenced by GWEN_DBIO_CSV_Export().

Here is the caller graph for this function:

◆ GWEN_DBIO_CSV__ReadLine()

int GWEN_DBIO_CSV__ReadLine ( GWEN_FAST_BUFFER fb,
GWEN_STRINGLIST sl 
)

◆ GWEN_DBIO_CSV_CheckFile()

GWEN_DBIO_CHECKFILE_RESULT GWEN_DBIO_CSV_CheckFile ( GWEN_UNUSED GWEN_DBIO dbio,
const char *  fname 
)

◆ GWEN_DBIO_CSV_Export()

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

◆ GWEN_DBIO_CSV_Factory()

GWEN_DBIO* GWEN_DBIO_CSV_Factory ( GWEN_UNUSED GWEN_PLUGIN pl)

Definition at line 649 of file csv.c.

References GWEN_DBIO_CSV_CheckFile(), GWEN_DBIO_CSV_Export(), GWEN_DBIO_CSV_Import(), GWEN_DBIO_new(), GWEN_DBIO_SetCheckFileFn(), GWEN_DBIO_SetExportFn(), and GWEN_DBIO_SetImportFn().

Referenced by dbio_csv_factory().

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

◆ GWEN_DBIO_CSV_Import()

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