Contents Previous Next

 Mini-XML 2.1 mxmlNewCustom()

Description

Create a new custom data node.

The new custom node is added to the end of the specified parent's child list. The constant MXML_NO_PARENT can be used to specify that the new element node has no parent. NULL can be passed when the data in the node is not dynamically allocated or is separately managed.

Syntax

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

Arguments

NameDescription
parentParent node or MXML_NO_PARENT
dataPointer to data
destroyFunction to destroy data

Returns

New node


Contents Previous Next