Mercurial > pidgin.yaz
diff libpurple/xmlnode.h @ 18072:3fc94e7c7056
add xmlnode_get_data_unescaped(), and got rid of an unecessary realloc
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 07 Jun 2007 21:14:54 +0000 |
parents | 32c366eeeb99 |
children | 5c1ed6296b56 44b4e8bd759b 86da6ab1f612 |
line wrap: on
line diff
--- a/libpurple/xmlnode.h Thu Jun 07 14:48:33 2007 +0000 +++ b/libpurple/xmlnode.h Thu Jun 07 21:14:54 2007 +0000 @@ -124,14 +124,24 @@ 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 + * @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(xmlnode *node); +char *xmlnode_get_data_unescaped(xmlnode *node); /** * Sets an attribute for a node.