gwenhywfar  4.99.8beta
Macros | Functions
xmlrw.c File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CHECK_ERROR(rv)
 

Functions

int GWEN_XML__ReadAllFromIo (GWEN_XML_CONTEXT *ctx, GWEN_SYNCIO *sio)
 
int GWEN_XML__ReadData (GWEN_XML_CONTEXT *ctx, GWEN_FAST_BUFFER *fb, GWEN_UNUSED uint32_t flags)
 
int GWEN_XML__ReadTag (GWEN_XML_CONTEXT *ctx, GWEN_FAST_BUFFER *fb, GWEN_UNUSED uint32_t flags, GWEN_BUFFER *dbuf)
 
int GWEN_XML_ReadFile (GWEN_XMLNODE *n, const char *filepath, uint32_t flags)
 
int GWEN_XML_ReadFromFastBuffer (GWEN_XML_CONTEXT *ctx, GWEN_FAST_BUFFER *fb)
 
int GWEN_XMLContext_ReadFromFile (GWEN_XML_CONTEXT *ctx, const char *fname)
 
int GWEN_XMLContext_ReadFromIo (GWEN_XML_CONTEXT *ctx, GWEN_SYNCIO *sio)
 
int GWEN_XMLContext_ReadFromString (GWEN_XML_CONTEXT *ctx, const char *text)
 
int GWEN_XMLNode__WriteToStream (const GWEN_XMLNODE *n, GWEN_FAST_BUFFER *fb, uint32_t flags, unsigned int ind)
 
GWEN_XMLNODEGWEN_XMLNode_fromString (const char *s, int len, uint32_t flags)
 
int GWEN_XMLNode_toBuffer (const GWEN_XMLNODE *n, GWEN_BUFFER *buf, uint32_t flags)
 
int GWEN_XMLNode_WriteFile (const GWEN_XMLNODE *n, const char *fname, uint32_t flags)
 
int GWEN_XMLNode_WriteToStream (const GWEN_XMLNODE *n, GWEN_XML_CONTEXT *ctx, GWEN_SYNCIO *sio)
 

Macro Definition Documentation

#define CHECK_ERROR (   rv)
Value:
if (rv<0) {\
DBG_INFO(GWEN_LOGDOMAIN, "here (%d)", rv);\
return rv;\
}
#define GWEN_LOGDOMAIN
Definition: logger.h:35
#define DBG_INFO(dbg_logger, format, args...)
Definition: debug.h:164

Referenced by GWEN_XMLNode__WriteToStream().

Function Documentation

int GWEN_XML__ReadAllFromIo ( GWEN_XML_CONTEXT ctx,
GWEN_SYNCIO sio 
)
int GWEN_XML__ReadData ( GWEN_XML_CONTEXT ctx,
GWEN_FAST_BUFFER fb,
GWEN_UNUSED uint32_t  flags 
)

Definition at line 384 of file xmlrw.c.

References GWEN_FAST_BUFFER::bufferReadPos, GWEN_Buffer_AppendByte(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_GetUsedBytes(), GWEN_Buffer_new(), GWEN_ERROR_EOF, GWEN_FASTBUFFER_PEEKBYTE, and GWEN_XmlCtx_AddData().

Referenced by GWEN_XML_ReadFromFastBuffer().

Here is the call graph for this function:

Here is the caller graph for this function:

int GWEN_XML__ReadTag ( GWEN_XML_CONTEXT ctx,
GWEN_FAST_BUFFER fb,
GWEN_UNUSED uint32_t  flags,
GWEN_BUFFER dbuf 
)
int GWEN_XMLNode__WriteToStream ( const GWEN_XMLNODE n,
GWEN_FAST_BUFFER fb,
uint32_t  flags,
unsigned int  ind 
)