comparison 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
comparison
equal deleted inserted replaced
18068:0b3d6ea61760 18072:3fc94e7c7056
122 * null-terminated you can pass in -1. 122 * null-terminated you can pass in -1.
123 */ 123 */
124 void xmlnode_insert_data(xmlnode *node, const char *data, gssize size); 124 void xmlnode_insert_data(xmlnode *node, const char *data, gssize size);
125 125
126 /** 126 /**
127 * Gets data from a node. 127 * Gets (escaped) data from a node.
128 * 128 *
129 * @param node The node to get data from. 129 * @param node The node to get data from.
130 * 130 *
131 * @return The data from the node. You must g_free 131 * @return The data from the node. This data is in raw escaped format.
132 * You must g_free this string when finished using it.
133 */
134 char *xmlnode_get_data(xmlnode *node);
135
136 /**
137 * Gets unescaped data from a node.
138 *
139 * @param node The node to get data from.
140 *
141 * @return The data from the node, in unescaped form. You must g_free
132 * this string when finished using it. 142 * this string when finished using it.
133 */ 143 */
134 char *xmlnode_get_data(xmlnode *node); 144 char *xmlnode_get_data_unescaped(xmlnode *node);
135 145
136 /** 146 /**
137 * Sets an attribute for a node. 147 * Sets an attribute for a node.
138 * 148 *
139 * @param node The node to set an attribute for. 149 * @param node The node to set an attribute for.