xmpp/xode.c File Reference

#include "xode.h"

Include dependency graph for xmpp/xode.c:

Go to the source code of this file.

Functions

static xode _xode_appendsibling (xode lastsibling, const char *name, unsigned int type)
static void _xode_hidesibling (xode child)
static xode _xode_insert (xode parent, const char *name, unsigned int type)
static char * _xode_merge (xode_pool p, char *dest, unsigned int destsize, const char *src, unsigned int srcsize)
static xode _xode_new (xode_pool p, const char *name, unsigned int type)
 Internal routines.
static xode _xode_search (xode firstsibling, const char *name, unsigned int type)
static int _xode_strcmp (const char *a, const char *b)
static void _xode_tag2str (xode_spool s, xode node, int flag)
void _xode_to_prettystr (xode_spool s, xode x, int deep)
static xode_spool _xode_tospool (xode node)
int xode_cmp (xode a, xode b)
xode xode_dup (xode x)
xode xode_dup_frompool (xode_pool p, xode x)
void xode_free (xode node)
char * xode_get_attrib (xode owner, const char *name)
char * xode_get_data (xode node)
int xode_get_datasz (xode node)
xode xode_get_firstattrib (xode parent)
xode xode_get_firstchild (xode parent)
xode xode_get_lastchild (xode parent)
char * xode_get_name (xode node)
xode xode_get_nextsibling (xode sibling)
xode xode_get_parent (xode node)
xode_pool xode_get_pool (xode node)
xode xode_get_prevsibling (xode sibling)
xode xode_get_tag (xode parent, const char *name)
char * xode_get_tagdata (xode parent, const char *name)
int xode_get_type (xode node)
void * xode_get_vattrib (xode owner, const char *name)
int xode_has_attribs (xode node)
int xode_has_children (xode node)
void xode_hide (xode child)
void xode_hide_attrib (xode parent, const char *name)
xode xode_insert_cdata (xode parent, const char *CDATA, unsigned int size)
void xode_insert_node (xode parent, xode node)
xode xode_insert_tag (xode parent, const char *name)
xode xode_insert_tagnode (xode parent, xode node)
xode xode_new (const char *name)
xode xode_new_frompool (xode_pool p, const char *name)
xode xode_new_tag (const char *name)
void xode_put_attrib (xode owner, const char *name, const char *value)
void xode_put_vattrib (xode owner, const char *name, void *value)
char * xode_to_prettystr (xode x)
char * xode_to_str (xode node)
xode xode_wrap (xode x, const char *wrapper)


Detailed Description

Definition in file xmpp/xode.c.


Function Documentation

static xode _xode_appendsibling ( xode  lastsibling,
const char *  name,
unsigned int  type 
) [static]

Definition at line 62 of file xmpp/xode.c.

References _xode_new(), xode_struct::next, NULL, xode_struct::prev, and xode_get_pool().

static void _xode_hidesibling ( xode  child  )  [static]

Definition at line 130 of file xmpp/xode.c.

References xode_struct::next, NULL, and xode_struct::prev.

static xode _xode_insert ( xode  parent,
const char *  name,
unsigned int  type 
) [static]

static char* _xode_merge ( xode_pool  p,
char *  dest,
unsigned int  destsize,
const char *  src,
unsigned int  srcsize 
) [static]

Definition at line 116 of file xmpp/xode.c.

References xode_pool_struct::size, and xode_pool_malloc().

static xode _xode_new ( xode_pool  p,
const char *  name,
unsigned int  type 
) [static]

static xode _xode_search ( xode  firstsibling,
const char *  name,
unsigned int  type 
) [static]

Definition at line 99 of file xmpp/xode.c.

References _xode_strcmp(), xode_struct::name, xode_struct::next, NULL, and xode_struct::type.

static int _xode_strcmp ( const char *  a,
const char *  b 
) [static]

Definition at line 28 of file xmpp/xode.c.

References NULL.

static void _xode_tag2str ( xode_spool  s,
xode  node,
int  flag 
) [static]

void _xode_to_prettystr ( xode_spool  s,
xode  x,
int  deep 
)

static xode_spool _xode_tospool ( xode  node  )  [static]

int xode_cmp ( xode  a,
xode  b 
)

xode xode_dup ( xode  x  ) 

xode xode_dup_frompool ( xode_pool  p,
xode  x 
)

void xode_free ( xode  node  ) 

Definition at line 805 of file xmpp/xode.c.

References NULL, xode_struct::p, and xode_pool_free().

char* xode_get_attrib ( xode  owner,
const char *  name 
)

char* xode_get_data ( xode  node  ) 

int xode_get_datasz ( xode  node  ) 

xode xode_get_firstattrib ( xode  parent  ) 

Definition at line 500 of file xmpp/xode.c.

References xode_struct::firstattrib, and NULL.

xode xode_get_firstchild ( xode  parent  ) 

Definition at line 507 of file xmpp/xode.c.

References xode_struct::firstchild, and NULL.

xode xode_get_lastchild ( xode  parent  ) 

Definition at line 514 of file xmpp/xode.c.

References xode_struct::lastchild, and NULL.

char* xode_get_name ( xode  node  ) 

Definition at line 542 of file xmpp/xode.c.

References xode_struct::name, and NULL.

xode xode_get_nextsibling ( xode  sibling  ) 

Definition at line 521 of file xmpp/xode.c.

References xode_struct::next, and NULL.

xode xode_get_parent ( xode  node  ) 

Definition at line 535 of file xmpp/xode.c.

References NULL, and xode_struct::parent.

xode_pool xode_get_pool ( xode  node  ) 

Definition at line 608 of file xmpp/xode.c.

References NULL, and xode_struct::p.

xode xode_get_prevsibling ( xode  sibling  ) 

Definition at line 528 of file xmpp/xode.c.

References NULL, and xode_struct::prev.

xode xode_get_tag ( xode  parent,
const char *  name 
)

char* xode_get_tagdata ( xode  parent,
const char *  name 
)

Definition at line 417 of file xmpp/xode.c.

References NULL, xode_get_data(), and xode_get_tag().

int xode_get_type ( xode  node  ) 

Definition at line 585 of file xmpp/xode.c.

References NULL, and xode_struct::type.

void* xode_get_vattrib ( xode  owner,
const char *  name 
)

int xode_has_attribs ( xode  node  ) 

Definition at line 601 of file xmpp/xode.c.

References xode_struct::firstattrib, and NULL.

int xode_has_children ( xode  node  ) 

Definition at line 594 of file xmpp/xode.c.

References xode_struct::firstchild, and NULL.

void xode_hide ( xode  child  ) 

void xode_hide_attrib ( xode  parent,
const char *  name 
)

xode xode_insert_cdata ( xode  parent,
const char *  CDATA,
unsigned int  size 
)

void xode_insert_node ( xode  parent,
xode  node 
)

xode xode_insert_tag ( xode  parent,
const char *  name 
)

Definition at line 275 of file xmpp/xode.c.

References _xode_insert(), and XODE_TYPE_TAG.

xode xode_insert_tagnode ( xode  parent,
xode  node 
)

xode xode_new ( const char *  name  ) 

Definition at line 234 of file xmpp/xode.c.

References _xode_new(), NULL, and XODE_TYPE_TAG.

xode xode_new_frompool ( xode_pool  p,
const char *  name 
)

Definition at line 258 of file xmpp/xode.c.

References _xode_new(), and XODE_TYPE_TAG.

xode xode_new_tag ( const char *  name  ) 

Definition at line 242 of file xmpp/xode.c.

References _xode_new(), NULL, and XODE_TYPE_TAG.

void xode_put_attrib ( xode  owner,
const char *  name,
const char *  value 
)

void xode_put_vattrib ( xode  owner,
const char *  name,
void *  value 
)

char* xode_to_prettystr ( xode  x  ) 

char* xode_to_str ( xode  node  ) 

Definition at line 667 of file xmpp/xode.c.

References _xode_tospool(), and xode_spool_tostr().

xode xode_wrap ( xode  x,
const char *  wrapper 
)


Generated on Fri May 25 00:00:45 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6