xmlrw.c File Reference

Go to the source code of this file.

Defines

#define CHECK_ERROR(rv)

Functions

int GWEN_XML__ReadAllFromIo (GWEN_XML_CONTEXT *ctx, GWEN_IO_LAYER *io)
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)
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_XML_ReadFromIo (GWEN_XML_CONTEXT *ctx, GWEN_IO_LAYER *io)
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_IO_LAYER *io)

Define Documentation

#define CHECK_ERROR ( rv   ) 
Value:
if (rv<0) {\
    DBG_INFO(GWEN_LOGDOMAIN, "here (%d)", rv);\
    return rv;\
  }

Referenced by GWEN_XMLNode__WriteToStream().


Function Documentation

int GWEN_XML__ReadAllFromIo ( GWEN_XML_CONTEXT ctx,
GWEN_IO_LAYER io 
)

Definition at line 855 of file xmlrw.c.

References DBG_INFO, GWEN_ERROR_EOF, GWEN_FastBuffer_free(), GWEN_FastBuffer_new(), GWEN_LOGDOMAIN, GWEN_XML_BUFFERSIZE, GWEN_XML_ReadFromFastBuffer(), GWEN_XmlCtx_GetGuiId(), and GWEN_XmlCtx_GetTimeout().

Referenced by GWEN_XML_ReadFile(), and GWEN_XMLNode_fromString().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 369 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 
)
int GWEN_XMLNode__WriteToStream ( const GWEN_XMLNODE n,
GWEN_FAST_BUFFER fb,
uint32_t  flags,
unsigned int  ind 
)
Generated on Mon Jul 5 22:58:38 2010 for gwenhywfar by  doxygen 1.6.3