Contents Previous Next

 Mini-XML 2.1 mxmlSetCustom()

Description

Set the data and destructor of a custom data node.

The node is not changed if it is not a custom node.

Syntax

int
mxmlSetCustom( mxml_node_t * node, void * data, mxml_custom_destroy_cb_t destroy);

Arguments

NameDescription
nodeNode to set
dataNew data pointer
destroyNew destructor function

Returns

0 on success, -1 on failure


Contents Previous Next