Mercurial > pidgin.yaz
comparison libpurple/xmlnode.h @ 25052:efde7e6ed5f2
There's no reason for these to not be const is there? This doesn't
break API compatibility in my mind. Does anyone think it does?
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 03 Feb 2009 18:56:17 +0000 |
parents | eb0f36c3a58f |
children | 4b8c4870b13a af42303654a5 |
comparison
equal
deleted
inserted
replaced
25051:cd7aa76faef6 | 25052:efde7e6ed5f2 |
---|---|
241 * Returns the prefix of a node | 241 * Returns the prefix of a node |
242 * | 242 * |
243 * @param node The node to get the prefix from | 243 * @param node The node to get the prefix from |
244 * @return The prefix of this node | 244 * @return The prefix of this node |
245 */ | 245 */ |
246 const char *xmlnode_get_prefix(xmlnode *node); | 246 const char *xmlnode_get_prefix(const xmlnode *node); |
247 | 247 |
248 /** | 248 /** |
249 * Returns the node in a string of xml. | 249 * Returns the node in a string of xml. |
250 * | 250 * |
251 * @param node The starting node to output. | 251 * @param node The starting node to output. |
252 * @param len Address for the size of the string. | 252 * @param len Address for the size of the string. |
253 * | 253 * |
254 * @return The node represented as a string. You must | 254 * @return The node represented as a string. You must |
255 * g_free this string when finished using it. | 255 * g_free this string when finished using it. |
256 */ | 256 */ |
257 char *xmlnode_to_str(xmlnode *node, int *len); | 257 char *xmlnode_to_str(const xmlnode *node, int *len); |
258 | 258 |
259 /** | 259 /** |
260 * Returns the node in a string of human readable xml. | 260 * Returns the node in a string of human readable xml. |
261 * | 261 * |
262 * @param node The starting node to output. | 262 * @param node The starting node to output. |
264 * | 264 * |
265 * @return The node as human readable string including | 265 * @return The node as human readable string including |
266 * tab and new line characters. You must | 266 * tab and new line characters. You must |
267 * g_free this string when finished using it. | 267 * g_free this string when finished using it. |
268 */ | 268 */ |
269 char *xmlnode_to_formatted_str(xmlnode *node, int *len); | 269 char *xmlnode_to_formatted_str(const xmlnode *node, int *len); |
270 | 270 |
271 /** | 271 /** |
272 * Creates a node from a string of XML. Calling this on the | 272 * Creates a node from a string of XML. Calling this on the |
273 * root node of an XML document will parse the entire document | 273 * root node of an XML document will parse the entire document |
274 * into a tree of nodes, and return the xmlnode of the root. | 274 * into a tree of nodes, and return the xmlnode of the root. |