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, void (*destroy)(void *));
Name | Description |
---|---|
node | Node to set |
data | New data pointer |
(*destroy)(void *) | New destructor function |
0 on success, -1 on failure