XmlFreeTree
From TrillWiki
The xmlFreeTree function frees the memory returned back from the xmlGenerateTree function.
Compatibility: 2.0 and higher
Contents |
Syntax
plugin_send(MYGUID, "xmlFreeTree", struct xml_tree_t *);
Note that all Trillian functions and notifications begin with a lower-case letter, despite the Wiki requirement that all pages start with a capital letter.
Parameters
XmlFreeTree utilitizes the xml_tree_t structure.
struct xml_tree_t {
unsigned int struct_size;
int memory_id;
char *filename;
char *data;
struct xml_tag_t *root_tag;
};
- memory_id
- The memory id set with the xmlGenerateTree call.
Return Value
Negative value on error, 0 on success.
Remarks
Make sure to read the remarks on xmlGenerateTree.
