#include "config.h"
#include "mxml.h"
Go to the source code of this file.
Functions | |
static int | mxml_set_attr (mxml_node_t *node, const char *name, char *value) |
void | mxmlElementDeleteAttr (mxml_node_t *node, const char *name) |
const char * | mxmlElementGetAttr (mxml_node_t *node, const char *name) |
void | mxmlElementSetAttr (mxml_node_t *node, const char *name, const char *value) |
void | mxmlElementSetAttrf (mxml_node_t *node, const char *name, const char *format,...) |
static int mxml_set_attr | ( | mxml_node_t * | node, | |
const char * | name, | |||
char * | value | |||
) | [static] |
Definition at line 255 of file mxml-attr.c.
References mxml_element_s::attrs, mxml_value_u::element, i, mxml_error(), mxml_element_s::name, mxml_attr_s::name, mxml_element_s::num_attrs, mxml_attr_s::value, and mxml_node_s::value.
Referenced by mxmlElementSetAttr(), and mxmlElementSetAttrf().
void mxmlElementDeleteAttr | ( | mxml_node_t * | node, | |
const char * | name | |||
) |
Definition at line 50 of file mxml-attr.c.
References mxml_element_s::attrs, mxml_value_u::element, i, MXML_ELEMENT, mxml_attr_s::name, mxml_element_s::num_attrs, mxml_node_s::type, mxml_attr_s::value, and mxml_node_s::value.
const char* mxmlElementGetAttr | ( | mxml_node_t * | node, | |
const char * | name | |||
) |
Definition at line 109 of file mxml-attr.c.
References mxml_element_s::attrs, mxml_value_u::element, i, MXML_ELEMENT, mxml_attr_s::name, mxml_element_s::num_attrs, mxml_node_s::type, mxml_attr_s::value, and mxml_node_s::value.
Referenced by index_compare(), index_find(), mxml_GetBool(), mxml_GetDouble(), mxml_GetFloat(), mxml_GetInt(), mxml_GetLong(), mxml_GetShort(), mxml_GetString(), mxml_parse_element(), mxml_ufo_type_cb(), mxmlFindElement(), and mxmlIndexNew().
void mxmlElementSetAttr | ( | mxml_node_t * | node, | |
const char * | name, | |||
const char * | value | |||
) |
Definition at line 171 of file mxml-attr.c.
References MXML_ELEMENT, mxml_set_attr(), and mxml_node_s::type.
Referenced by mxml_AddBool(), mxml_AddBoolValue(), mxml_AddDouble(), mxml_AddDoubleValue(), mxml_AddLong(), mxml_AddLongValue(), mxml_AddString(), mxml_AddStringValue(), and mxml_parse_element().
void mxmlElementSetAttrf | ( | mxml_node_t * | node, | |
const char * | name, | |||
const char * | format, | |||
... | ||||
) |
Definition at line 212 of file mxml-attr.c.
References _mxml_vstrdupf(), mxml_value_u::element, MXML_ELEMENT, mxml_error(), mxml_set_attr(), mxml_element_s::name, mxml_node_s::type, and mxml_node_s::value.