diff options
author | Nathan Walp <nwalp@pidgin.im> | 2007-06-07 21:14:54 +0000 |
---|---|---|
committer | Nathan Walp <nwalp@pidgin.im> | 2007-06-07 21:14:54 +0000 |
commit | 78a912e1438993be76894ea9b72bce5717c28113 (patch) | |
tree | 838e6df0767affe7653e3e86a067087621693070 /libpurple/xmlnode.h | |
parent | 2f217ec547342a746c479ac01e7ddb3d3900ae06 (diff) | |
download | pidgin-78a912e1438993be76894ea9b72bce5717c28113.tar.gz |
add xmlnode_get_data_unescaped(), and got rid of an unecessary realloc
Diffstat (limited to 'libpurple/xmlnode.h')
-rw-r--r-- | libpurple/xmlnode.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/libpurple/xmlnode.h b/libpurple/xmlnode.h index f9a94fb908..ab337a3008 100644 --- a/libpurple/xmlnode.h +++ b/libpurple/xmlnode.h @@ -124,16 +124,26 @@ xmlnode *xmlnode_get_next_twin(xmlnode *node); void xmlnode_insert_data(xmlnode *node, const char *data, gssize size); /** - * Gets data from a node. + * Gets (escaped) data from a node. * * @param node The node to get data from. * - * @return The data from the node. You must g_free - * this string when finished using it. + * @return The data from the node. This data is in raw escaped format. + * You must g_free this string when finished using it. */ char *xmlnode_get_data(xmlnode *node); /** + * Gets unescaped data from a node. + * + * @param node The node to get data from. + * + * @return The data from the node, in unescaped form. You must g_free + * this string when finished using it. + */ +char *xmlnode_get_data_unescaped(xmlnode *node); + +/** * Sets an attribute for a node. * * @param node The node to set an attribute for. |