Set the data and destructor of a custom data node.
The node is not changed if it is not a custom node.
int
mxmlSetCustom( mxml_node_t
* node, void * data,
mxml_custom_destroy_cb_t destroy);
Name | Description |
---|---|
node | Node to set |
data | New data pointer |
destroy | New destructor function |
0 on success, -1 on failure