Contents Previous Next

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,
    void (*destroy)(void *));

Arguments

NameDescription
parentParent node or MXML_NO_PARENT
dataPointer to data
(*destroy)(void *)Function to destroy data

Returns

New node


Contents Previous Next