#include "config.h"
#include "mxml.h"
Go to the source code of this file.
Functions | |
static mxml_node_t * | mxml_new (mxml_node_t *parent, mxml_type_t type) |
void | mxmlAdd (mxml_node_t *parent, int where, mxml_node_t *child, mxml_node_t *node) |
void | mxmlDelete (mxml_node_t *node) |
mxml_node_t * | mxmlNewCDATA (mxml_node_t *parent, const char *data) |
mxml_node_t * | mxmlNewCustom (mxml_node_t *parent, void *data, mxml_custom_destroy_cb_t destroy) |
mxml_node_t * | mxmlNewElement (mxml_node_t *parent, const char *name) |
mxml_node_t * | mxmlNewInteger (mxml_node_t *parent, int integer) |
mxml_node_t * | mxmlNewOpaque (mxml_node_t *parent, const char *opaque) |
mxml_node_t * | mxmlNewReal (mxml_node_t *parent, double real) |
mxml_node_t * | mxmlNewText (mxml_node_t *parent, int whitespace, const char *string) |
mxml_node_t * | mxmlNewTextf (mxml_node_t *parent, int whitespace, const char *format,...) |
void | mxmlRemove (mxml_node_t *node) |
mxml_node_t * | mxmlNewXML (const char *version) |
int | mxmlRelease (mxml_node_t *node) |
int | mxmlRetain (mxml_node_t *node) |
static mxml_node_t * mxml_new | ( | mxml_node_t * | parent, | |
mxml_type_t | type | |||
) | [static] |
Definition at line 729 of file mxml-node.c.
References MXML_ADD_AFTER, MXML_ADD_TO_PARENT, mxmlAdd(), mxml_node_s::ref_count, and mxml_node_s::type.
Referenced by mxmlNewCDATA(), mxmlNewCustom(), mxmlNewElement(), mxmlNewInteger(), mxmlNewOpaque(), mxmlNewReal(), mxmlNewText(), and mxmlNewTextf().
void mxmlAdd | ( | mxml_node_t * | parent, | |
int | where, | |||
mxml_node_t * | child, | |||
mxml_node_t * | node | |||
) |
Definition at line 64 of file mxml-node.c.
References mxml_node_s::child, mxml_node_s::last_child, MXML_ADD_AFTER, MXML_ADD_BEFORE, mxmlRemove(), mxml_node_s::next, mxml_node_s::parent, and mxml_node_s::prev.
Referenced by mxml_new().
void mxmlDelete | ( | mxml_node_t * | node | ) |
Definition at line 198 of file mxml-node.c.
References mxml_element_s::attrs, mxml_node_s::child, mxml_value_u::custom, mxml_custom_s::data, mxml_custom_s::destroy, mxml_value_u::element, i, MXML_CUSTOM, MXML_ELEMENT, MXML_INTEGER, MXML_OPAQUE, MXML_REAL, MXML_TEXT, mxmlDelete(), mxmlRemove(), mxml_attr_s::name, mxml_element_s::name, mxml_element_s::num_attrs, mxml_value_u::opaque, mxml_text_s::string, mxml_value_u::text, mxml_node_s::type, mxml_attr_s::value, and mxml_node_s::value.
Referenced by CP_LoadXML(), MP_LoadTeamMultiplayer(), MP_SaveTeamMultiplayer(), mxml_load_data(), mxmlDelete(), mxmlRelease(), SAV_GameLoad(), SAV_GameSave(), and STATS_LoadXML().
mxml_node_t* mxmlNewCDATA | ( | mxml_node_t * | parent, | |
const char * | data | |||
) |
Definition at line 293 of file mxml-node.c.
References _mxml_strdupf(), mxml_value_u::element, MXML_ELEMENT, mxml_new(), mxml_element_s::name, and mxml_node_s::value.
mxml_node_t* mxmlNewCustom | ( | mxml_node_t * | parent, | |
void * | data, | |||
mxml_custom_destroy_cb_t | destroy | |||
) |
Definition at line 334 of file mxml-node.c.
References mxml_value_u::custom, mxml_custom_s::data, mxml_custom_s::destroy, MXML_CUSTOM, mxml_new(), and mxml_node_s::value.
Referenced by mxml_load_data().
mxml_node_t* mxmlNewElement | ( | mxml_node_t * | parent, | |
const char * | name | |||
) |
Definition at line 370 of file mxml-node.c.
References mxml_value_u::element, MXML_ELEMENT, mxml_new(), mxml_element_s::name, and mxml_node_s::value.
Referenced by mxml_AddDate(), mxml_AddNode(), mxml_AddPos2(), mxml_AddPos3(), mxml_load_data(), and mxmlNewXML().
mxml_node_t* mxmlNewInteger | ( | mxml_node_t * | parent, | |
int | integer | |||
) |
Definition at line 408 of file mxml-node.c.
References mxml_value_u::integer, MXML_INTEGER, mxml_new(), and mxml_node_s::value.
Referenced by mxml_load_data().
mxml_node_t* mxmlNewOpaque | ( | mxml_node_t * | parent, | |
const char * | opaque | |||
) |
Definition at line 439 of file mxml-node.c.
References mxml_new(), MXML_OPAQUE, mxml_value_u::opaque, and mxml_node_s::value.
Referenced by mxml_load_data().
mxml_node_t* mxmlNewReal | ( | mxml_node_t * | parent, | |
double | real | |||
) |
Definition at line 477 of file mxml-node.c.
References mxml_new(), MXML_REAL, mxml_value_u::real, and mxml_node_s::value.
Referenced by mxml_load_data().
mxml_node_t* mxmlNewText | ( | mxml_node_t * | parent, | |
int | whitespace, | |||
const char * | string | |||
) |
Definition at line 509 of file mxml-node.c.
References mxml_new(), MXML_TEXT, mxml_text_s::string, mxml_value_u::text, mxml_node_s::value, and mxml_text_s::whitespace.
Referenced by mxml_load_data().
mxml_node_t* mxmlNewTextf | ( | mxml_node_t * | parent, | |
int | whitespace, | |||
const char * | format, | |||
... | ||||
) |
Definition at line 553 of file mxml-node.c.
References _mxml_vstrdupf(), mxml_new(), MXML_TEXT, mxml_text_s::string, mxml_value_u::text, mxml_node_s::value, and mxml_text_s::whitespace.
mxml_node_t* mxmlNewXML | ( | const char * | version | ) |
Definition at line 669 of file mxml-node.c.
References mxmlNewElement().
Referenced by MP_SaveTeamMultiplayer(), and SAV_GameSave().
int mxmlRelease | ( | mxml_node_t * | node | ) |
Definition at line 691 of file mxml-node.c.
References mxmlDelete(), and mxml_node_s::ref_count.
Referenced by mxml_load_data().
void mxmlRemove | ( | mxml_node_t * | node | ) |
Definition at line 600 of file mxml-node.c.
References mxml_node_s::child, mxml_node_s::last_child, mxml_node_s::next, mxml_node_s::parent, and mxml_node_s::prev.
Referenced by mxmlAdd(), and mxmlDelete().
int mxmlRetain | ( | mxml_node_t * | node | ) |
Definition at line 715 of file mxml-node.c.
References mxml_node_s::ref_count.