/home/dko/projects/mobilec/trunk/src/mxml-2.2.2/mxml-node.c File Reference

#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)
mxml_node_t * mxmlNewCustom (mxml_node_t *parent, void *data, void(*destroy)(void *))
mxml_node_t * mxmlNewElement (mxml_node_t *parent, const char *name)
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,...)

Function Documentation

static mxml_node_t * mxml_new ( mxml_node_t * parent,
) [static]

Definition at line 617 of file mxml-node.c.

References MXML_ADD_AFTER, MXML_ADD_TO_PARENT, mxmlAdd(), node, and mxml_node_s::type.

Referenced by 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 62 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 add_variable(), agent_xml_compose(), agent_xml_compose__agent_data(), agent_xml_compose__create_row_nodes(), agent_xml_compose__data(), agent_xml_compose__gaf_message(), agent_xml_compose__message(), agent_xml_compose__mobile_agent(), agent_xml_compose__task(), agent_xml_compose__tasks(), fipa_envelope_Compose(), fipa_envelope_Compose__envelope(), fipa_envelope_Compose__params(), mxml_new(), scan_file(), and sort_node().

void mxmlDelete ( mxml_node_t * node )

Definition at line 196 of file mxml-node.c.

References mxml_value_s::attrs, mxml_node_s::child, mxml_value_u::custom, mxml_custom_s::data, mxml_custom_s::destroy, mxml_value_u::element, MXML_CUSTOM, MXML_ELEMENT, MXML_INTEGER, MXML_OPAQUE, MXML_REAL, MXML_TEXT, mxmlDelete(), mxmlRemove(), mxml_attr_s::name, mxml_value_s::name, mxml_value_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 add_variable(), agent_datastate_Destroy(), fipa_envelope_Compose(), fipa_envelope_Parse(), main(), message_Destroy(), mxml_load_data(), mxmlDelete(), scan_file(), and sort_node().

mxml_node_t* mxmlNewCustom ( mxml_node_t * parent,
void * data,
void(*)(void *) destroy
)

Definition at line 287 of file mxml-node.c.

References mxml_value_u::custom, mxml_custom_s::data, mxml_custom_s::destroy, MXML_CUSTOM, mxml_new(), node, and mxml_node_s::value.

Referenced by mxml_load_data().

mxml_node_t* mxmlNewElement ( mxml_node_t * parent,
const char * name
)

Definition at line 323 of file mxml-node.c.

References mxml_value_u::element, MXML_ELEMENT, mxml_new(), mxml_value_s::name, node, and mxml_node_s::value.

Referenced by add_variable(), agent_xml_compose__agent_code(), agent_xml_compose__agent_data(), agent_xml_compose__create_row_nodes(), agent_xml_compose__data(), agent_xml_compose__gaf_message(), agent_xml_compose__home(), agent_xml_compose__message(), agent_xml_compose__mobile_agent(), agent_xml_compose__name(), agent_xml_compose__owner(), agent_xml_compose__task(), agent_xml_compose__tasks(), fipa_envelope_Compose__acl_representation(), fipa_envelope_Compose__date(), fipa_envelope_Compose__envelope(), fipa_envelope_Compose__from(), fipa_envelope_Compose__intended_receiver(), fipa_envelope_Compose__params(), fipa_envelope_Compose__payload_encoding(), fipa_envelope_Compose__to(), main(), mxml_load_data(), scan_file(), and xml_new_cdata().

mxml_node_t* mxmlNewInteger ( mxml_node_t * parent,
int integer
)

Definition at line 361 of file mxml-node.c.

References mxml_value_u::integer, MXML_INTEGER, mxml_new(), node, and mxml_node_s::value.

Referenced by main(), and mxml_load_data().

mxml_node_t* mxmlNewOpaque ( mxml_node_t * parent,
const char * opaque
)

Definition at line 392 of file mxml-node.c.

References mxml_new(), MXML_OPAQUE, node, mxml_value_u::opaque, and mxml_node_s::value.

Referenced by main(), and mxml_load_data().

mxml_node_t* mxmlNewReal ( mxml_node_t * parent,
double real
)

Definition at line 430 of file mxml-node.c.

References mxml_new(), MXML_REAL, node, mxml_value_u::real, and mxml_node_s::value.

Referenced by main(), and mxml_load_data().

mxml_node_t* mxmlNewText ( mxml_node_t * parent,
int whitespace,
const char * string
)

Definition at line 462 of file mxml-node.c.

References mxml_new(), MXML_TEXT, node, mxml_text_s::string, mxml_value_u::text, mxml_node_s::value, and mxml_text_s::whitespace.

Referenced by agent_xml_compose__create_row_nodes(), agent_xml_compose__home(), agent_xml_compose__name(), agent_xml_compose__owner(), fipa_envelope_Compose__acl_representation(), fipa_envelope_Compose__date(), fipa_envelope_Compose__from(), fipa_envelope_Compose__intended_receiver(), fipa_envelope_Compose__payload_encoding(), fipa_envelope_Compose__to(), main(), mxml_load_data(), and scan_file().

mxml_node_t* mxmlNewTextf ( mxml_node_t * parent,
int whitespace,
const char * format,
...
)

Definition at line 506 of file mxml-node.c.

References mxml_new(), mxml_strdupf(), MXML_TEXT, node, mxml_text_s::string, mxml_value_u::text, mxml_node_s::value, and mxml_text_s::whitespace.

void mxmlRemove ( mxml_node_t * node )

Definition at line 553 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().


Generated on Tue Oct 28 17:03:24 2008 for Mobile-C by doxygen 1.5.5

AltStyle によって変換されたページ (->オリジナル) /