xmlctx.c File Reference

#include "xmlctx_p.h"
#include "gwenhywfar/debug.h"
#include "gwenhywfar/misc.h"
#include "gwenhywfar/text.h"
#include "gwenhywfar/path.h"
#include "i18n_l.h"
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <ctype.h>
Include dependency graph for xmlctx.c:

Go to the source code of this file.

Functions

int GWEN_XmlCtx_AddAttr (GWEN_XML_CONTEXT *ctx, const char *attrName, const char *attrData)
int GWEN_XmlCtx_AddComment (GWEN_XML_CONTEXT *ctx, const char *data)
int GWEN_XmlCtx_AddData (GWEN_XML_CONTEXT *ctx, const char *data)
int GWEN_XmlCtx_DecDepth (GWEN_XML_CONTEXT *ctx)
int GWEN_XmlCtx_EndTag (GWEN_XML_CONTEXT *ctx, int closing)
void GWEN_XmlCtx_free (GWEN_XML_CONTEXT *ctx)
GWEN_XMLNODEGWEN_XmlCtx_GetCurrentHeader (const GWEN_XML_CONTEXT *ctx)
GWEN_XMLNODEGWEN_XmlCtx_GetCurrentNode (const GWEN_XML_CONTEXT *ctx)
int GWEN_XmlCtx_GetDepth (const GWEN_XML_CONTEXT *ctx)
uint32_t GWEN_XmlCtx_GetFinishedElement (const GWEN_XML_CONTEXT *ctx)
uint32_t GWEN_XmlCtx_GetFlags (const GWEN_XML_CONTEXT *ctx)
uint32_t GWEN_XmlCtx_GetGuiId (const GWEN_XML_CONTEXT *ctx)
int GWEN_XmlCtx_GetTimeout (const GWEN_XML_CONTEXT *ctx)
void GWEN_XmlCtx_IncDepth (GWEN_XML_CONTEXT *ctx)
void GWEN_XmlCtx_IncFinishedElement (GWEN_XML_CONTEXT *ctx)
GWEN_XML_CONTEXTGWEN_XmlCtx_new (uint32_t flags, uint32_t guiid, int timeout)
void GWEN_XmlCtx_ResetFinishedElement (GWEN_XML_CONTEXT *ctx)
GWEN_XMLCTX_ADDATTR_FN GWEN_XmlCtx_SetAddAttrFn (GWEN_XML_CONTEXT *ctx, GWEN_XMLCTX_ADDATTR_FN f)
GWEN_XMLCTX_ADDCOMMENT_FN GWEN_XmlCtx_SetAddCommentFn (GWEN_XML_CONTEXT *ctx, GWEN_XMLCTX_ADDCOMMENT_FN f)
GWEN_XMLCTX_ADDDATA_FN GWEN_XmlCtx_SetAddDataFn (GWEN_XML_CONTEXT *ctx, GWEN_XMLCTX_ADDDATA_FN f)
void GWEN_XmlCtx_SetCurrentHeader (GWEN_XML_CONTEXT *ctx, GWEN_XMLNODE *n)
void GWEN_XmlCtx_SetCurrentNode (GWEN_XML_CONTEXT *ctx, GWEN_XMLNODE *n)
void GWEN_XmlCtx_SetDepth (GWEN_XML_CONTEXT *ctx, int i)
GWEN_XMLCTX_ENDTAG_FN GWEN_XmlCtx_SetEndTagFn (GWEN_XML_CONTEXT *ctx, GWEN_XMLCTX_ENDTAG_FN f)
void GWEN_XmlCtx_SetFlags (GWEN_XML_CONTEXT *ctx, uint32_t f)
GWEN_XMLCTX_STARTTAG_FN GWEN_XmlCtx_SetStartTagFn (GWEN_XML_CONTEXT *ctx, GWEN_XMLCTX_STARTTAG_FN f)
int GWEN_XmlCtx_StartTag (GWEN_XML_CONTEXT *ctx, const char *tagName)
int GWEN_XmlCtxStore_AddAttr (GWEN_XML_CONTEXT *ctx, const char *attrName, const char *attrData)
int GWEN_XmlCtxStore_AddComment (GWEN_UNUSED GWEN_XML_CONTEXT *ctx, GWEN_UNUSED const char *data)
int GWEN_XmlCtxStore_AddData (GWEN_XML_CONTEXT *ctx, const char *data)
int GWEN_XmlCtxStore_EndTag (GWEN_XML_CONTEXT *ctx, int closing)
GWEN_XML_CONTEXTGWEN_XmlCtxStore_new (GWEN_XMLNODE *n, uint32_t flags, uint32_t guiid, int timeout)
int GWEN_XmlCtxStore_StartTag (GWEN_XML_CONTEXT *ctx, const char *tagName)

Function Documentation

int GWEN_XmlCtx_AddAttr ( GWEN_XML_CONTEXT ctx,
const char *  attrName,
const char *  attrData 
)

Definition at line 300 of file xmlctx.c.

References DBG_INFO, and GWEN_LOGDOMAIN.

Referenced by GWEN_XML__ReadTag().

Here is the caller graph for this function:

int GWEN_XmlCtx_AddComment ( GWEN_XML_CONTEXT ctx,
const char *  data 
)

Definition at line 287 of file xmlctx.c.

References DBG_INFO, and GWEN_LOGDOMAIN.

Referenced by GWEN_XML__ReadTag().

Here is the caller graph for this function:

int GWEN_XmlCtx_AddData ( GWEN_XML_CONTEXT ctx,
const char *  data 
)

Definition at line 274 of file xmlctx.c.

References DBG_INFO, and GWEN_LOGDOMAIN.

Referenced by GWEN_XML__ReadData().

Here is the caller graph for this function:

int GWEN_XmlCtx_DecDepth ( GWEN_XML_CONTEXT ctx  ) 

Definition at line 127 of file xmlctx.c.

Referenced by GWEN_XmlCtxStore_EndTag(), and GWEN_XmlCtxStore_StartTag().

Here is the caller graph for this function:

int GWEN_XmlCtx_EndTag ( GWEN_XML_CONTEXT ctx,
int  closing 
)

Definition at line 261 of file xmlctx.c.

References DBG_INFO, and GWEN_LOGDOMAIN.

Referenced by GWEN_XML__ReadTag().

Here is the caller graph for this function:

void GWEN_XmlCtx_free ( GWEN_XML_CONTEXT ctx  ) 

Definition at line 69 of file xmlctx.c.

References GWEN_FREE_OBJECT, and GWEN_INHERIT_FINI.

Referenced by GWEN_XML_ReadFile(), GWEN_XMLNode_fromString(), GWEN_XMLNode_toBuffer(), and GWEN_XMLNode_WriteFile().

Here is the caller graph for this function:

GWEN_XMLNODE* GWEN_XmlCtx_GetCurrentHeader ( const GWEN_XML_CONTEXT ctx  ) 

Definition at line 179 of file xmlctx.c.

Referenced by GWEN_XmlCtxStore_AddAttr(), and GWEN_XmlCtxStore_EndTag().

Here is the caller graph for this function:

GWEN_XMLNODE* GWEN_XmlCtx_GetCurrentNode ( const GWEN_XML_CONTEXT ctx  ) 

Definition at line 165 of file xmlctx.c.

Referenced by GWEN_XmlCtxStore_AddAttr(), GWEN_XmlCtxStore_AddData(), GWEN_XmlCtxStore_EndTag(), and GWEN_XmlCtxStore_StartTag().

Here is the caller graph for this function:

int GWEN_XmlCtx_GetDepth ( const GWEN_XML_CONTEXT ctx  ) 

Definition at line 106 of file xmlctx.c.

Referenced by GWEN_XML_ReadFromFastBuffer().

Here is the caller graph for this function:

uint32_t GWEN_XmlCtx_GetFinishedElement ( const GWEN_XML_CONTEXT ctx  ) 

Definition at line 137 of file xmlctx.c.

Referenced by GWEN_XML_ReadFromFastBuffer().

Here is the caller graph for this function:

uint32_t GWEN_XmlCtx_GetFlags ( const GWEN_XML_CONTEXT ctx  ) 

Definition at line 92 of file xmlctx.c.

Referenced by GWEN_XML_ReadFromFastBuffer(), GWEN_XmlCtxStore_AddData(), GWEN_XmlCtxStore_StartTag(), and GWEN_XMLNode_WriteToStream().

Here is the caller graph for this function:

uint32_t GWEN_XmlCtx_GetGuiId ( const GWEN_XML_CONTEXT ctx  ) 

Definition at line 78 of file xmlctx.c.

Referenced by GWEN_XML__ReadAllFromIo(), GWEN_XML_ReadFromIo(), GWEN_XMLNode_WriteFile(), and GWEN_XMLNode_WriteToStream().

Here is the caller graph for this function:

int GWEN_XmlCtx_GetTimeout ( const GWEN_XML_CONTEXT ctx  ) 

Definition at line 85 of file xmlctx.c.

Referenced by GWEN_XML__ReadAllFromIo(), GWEN_XML_ReadFromIo(), and GWEN_XMLNode_WriteToStream().

Here is the caller graph for this function:

void GWEN_XmlCtx_IncDepth ( GWEN_XML_CONTEXT ctx  ) 

Definition at line 120 of file xmlctx.c.

Referenced by GWEN_XmlCtxStore_StartTag().

Here is the caller graph for this function:

void GWEN_XmlCtx_IncFinishedElement ( GWEN_XML_CONTEXT ctx  ) 

Definition at line 144 of file xmlctx.c.

Referenced by GWEN_XmlCtxStore_EndTag(), and GWEN_XmlCtxStore_StartTag().

Here is the caller graph for this function:

GWEN_XML_CONTEXT* GWEN_XmlCtx_new ( uint32_t  flags,
uint32_t  guiid,
int  timeout 
)

Definition at line 52 of file xmlctx.c.

References GWEN_INHERIT_INIT, and GWEN_NEW_OBJECT.

Referenced by GWEN_XmlCtxStore_new().

Here is the caller graph for this function:

void GWEN_XmlCtx_ResetFinishedElement ( GWEN_XML_CONTEXT ctx  ) 

Definition at line 151 of file xmlctx.c.

Referenced by GWEN_XML_ReadFromFastBuffer().

Here is the caller graph for this function:

GWEN_XMLCTX_ADDATTR_FN GWEN_XmlCtx_SetAddAttrFn ( GWEN_XML_CONTEXT ctx,
GWEN_XMLCTX_ADDATTR_FN  f 
)

Definition at line 222 of file xmlctx.c.

Referenced by GWEN_XmlCtxStore_new().

Here is the caller graph for this function:

GWEN_XMLCTX_ADDCOMMENT_FN GWEN_XmlCtx_SetAddCommentFn ( GWEN_XML_CONTEXT ctx,
GWEN_XMLCTX_ADDCOMMENT_FN  f 
)

Definition at line 235 of file xmlctx.c.

Referenced by GWEN_XmlCtxStore_new().

Here is the caller graph for this function:

GWEN_XMLCTX_ADDDATA_FN GWEN_XmlCtx_SetAddDataFn ( GWEN_XML_CONTEXT ctx,
GWEN_XMLCTX_ADDDATA_FN  f 
)

Definition at line 210 of file xmlctx.c.

Referenced by GWEN_XmlCtxStore_new().

Here is the caller graph for this function:

void GWEN_XmlCtx_SetCurrentHeader ( GWEN_XML_CONTEXT ctx,
GWEN_XMLNODE n 
)

Definition at line 172 of file xmlctx.c.

Referenced by GWEN_XmlCtxStore_EndTag(), and GWEN_XmlCtxStore_StartTag().

Here is the caller graph for this function:

void GWEN_XmlCtx_SetCurrentNode ( GWEN_XML_CONTEXT ctx,
GWEN_XMLNODE n 
)

Definition at line 158 of file xmlctx.c.

Referenced by GWEN_XmlCtxStore_EndTag(), GWEN_XmlCtxStore_new(), and GWEN_XmlCtxStore_StartTag().

Here is the caller graph for this function:

void GWEN_XmlCtx_SetDepth ( GWEN_XML_CONTEXT ctx,
int  i 
)

Definition at line 113 of file xmlctx.c.

GWEN_XMLCTX_ENDTAG_FN GWEN_XmlCtx_SetEndTagFn ( GWEN_XML_CONTEXT ctx,
GWEN_XMLCTX_ENDTAG_FN  f 
)

Definition at line 198 of file xmlctx.c.

Referenced by GWEN_XmlCtxStore_new().

Here is the caller graph for this function:

void GWEN_XmlCtx_SetFlags ( GWEN_XML_CONTEXT ctx,
uint32_t  f 
)

Definition at line 99 of file xmlctx.c.

GWEN_XMLCTX_STARTTAG_FN GWEN_XmlCtx_SetStartTagFn ( GWEN_XML_CONTEXT ctx,
GWEN_XMLCTX_STARTTAG_FN  f 
)

Definition at line 186 of file xmlctx.c.

Referenced by GWEN_XmlCtxStore_new().

Here is the caller graph for this function:

int GWEN_XmlCtx_StartTag ( GWEN_XML_CONTEXT ctx,
const char *  tagName 
)

Definition at line 248 of file xmlctx.c.

References DBG_INFO, and GWEN_LOGDOMAIN.

Referenced by GWEN_XML__ReadTag().

Here is the caller graph for this function:

int GWEN_XmlCtxStore_AddAttr ( GWEN_XML_CONTEXT ctx,
const char *  attrName,
const char *  attrData 
)
int GWEN_XmlCtxStore_AddComment ( GWEN_UNUSED GWEN_XML_CONTEXT ctx,
GWEN_UNUSED const char *  data 
)

Definition at line 556 of file xmlctx.c.

Referenced by GWEN_XmlCtxStore_new().

Here is the caller graph for this function:

int GWEN_XmlCtxStore_AddData ( GWEN_XML_CONTEXT ctx,
const char *  data 
)
int GWEN_XmlCtxStore_EndTag ( GWEN_XML_CONTEXT ctx,
int  closing 
)
GWEN_XML_CONTEXT* GWEN_XmlCtxStore_new ( GWEN_XMLNODE n,
uint32_t  flags,
uint32_t  guiid,
int  timeout 
)
int GWEN_XmlCtxStore_StartTag ( GWEN_XML_CONTEXT ctx,
const char *  tagName 
)
Generated on Mon Jul 5 22:58:33 2010 for gwenhywfar by  doxygen 1.6.3