#include "config.h"
#include "mxml.h"
Go to the source code of this file.
Functions | |
static int | index_compare (mxml_index_t *ind, mxml_node_t *first, mxml_node_t *second) |
static int | index_find (mxml_index_t *ind, const char *element, const char *value, mxml_node_t *node) |
static void | index_sort (mxml_index_t *ind, int left, int right) |
void | mxmlIndexDelete (mxml_index_t *ind) |
mxml_node_t * | mxmlIndexEnum (mxml_index_t *ind) |
mxml_node_t * | mxmlIndexFind (mxml_index_t *ind, const char *element, const char *value) |
mxml_index_t * | mxmlIndexNew (mxml_node_t *node, const char *element, const char *attr) |
mxml_node_t * | mxmlIndexReset (mxml_index_t *ind) |
static int index_compare | ( | mxml_index_t * | ind, | |
mxml_node_t * | first, | |||
mxml_node_t * | second | |||
) | [static] |
Definition at line 498 of file mxml-index.c.
References mxml_index_s::attr, mxml_value_u::element, mxmlElementGetAttr(), mxml_value_s::name, and mxml_node_s::value.
Referenced by index_sort().
static int index_find | ( | mxml_index_t * | ind, | |
const char * | element, | |||
const char * | value, | |||
mxml_node_t * | node | |||
) | [static] |
Definition at line 537 of file mxml-index.c.
References mxml_index_s::attr, mxml_value_u::element, mxmlElementGetAttr(), mxml_value_s::name, and mxml_node_s::value.
Referenced by mxmlIndexFind().
static void index_sort | ( | mxml_index_t * | ind, | |
int | left, | |||
int | right | |||
) | [static] |
Definition at line 580 of file mxml-index.c.
References index_compare(), and mxml_index_s::nodes.
Referenced by mxmlIndexNew().
void mxmlIndexDelete | ( | mxml_index_t * | ind | ) |
Definition at line 62 of file mxml-index.c.
References mxml_index_s::alloc_nodes, mxml_index_s::attr, and mxml_index_s::nodes.
Referenced by main(), and mxmlIndexNew().
mxml_node_t* mxmlIndexEnum | ( | mxml_index_t * | ind | ) |
Definition at line 92 of file mxml-index.c.
References mxml_index_s::cur_node, mxml_index_s::nodes, and mxml_index_s::num_nodes.
Referenced by main(), and mxmlIndexFind().
mxml_node_t* mxmlIndexFind | ( | mxml_index_t * | ind, | |
const char * | element, | |||
const char * | value | |||
) |
Definition at line 122 of file mxml-index.c.
References mxml_index_s::attr, mxml_index_s::cur_node, index_find(), mxmlIndexEnum(), mxml_index_s::nodes, and mxml_index_s::num_nodes.
Referenced by main().
mxml_index_t* mxmlIndexNew | ( | mxml_node_t * | node, | |
const char * | element, | |||
const char * | attr | |||
) |
Definition at line 305 of file mxml-index.c.
References mxml_index_s::alloc_nodes, mxml_index_s::attr, mxml_value_u::element, index_sort(), MXML_DESCEND, mxml_error(), mxmlElementGetAttr(), mxmlFindElement(), mxmlIndexDelete(), mxml_value_s::name, mxml_index_s::nodes, mxml_index_s::num_nodes, strdup, and mxml_node_s::value.
Referenced by main().
mxml_node_t* mxmlIndexReset | ( | mxml_index_t * | ind | ) |
Definition at line 463 of file mxml-index.c.
References mxml_index_s::cur_node, mxml_index_s::nodes, and mxml_index_s::num_nodes.
Referenced by main().