Mercurial > pidgin
comparison libpurple/xmlnode.h @ 30257:77cd42f08ba1
const-ify the xmlnode* parameter to xmlnode_get_attrib(_with_namespace)
This doesn't break A[BP]I, right? It seems sane to me and is needed
for my next commit (using const xmlnode*s)
| author | Paul Aurich <paul@darkrain42.org> |
|---|---|
| date | Sat, 10 Jul 2010 00:56:11 +0000 |
| parents | 4f6883b854a2 |
| children | 5876584828e8 |
comparison
equal
deleted
inserted
replaced
| 30256:067ad74c7523 | 30257:77cd42f08ba1 |
|---|---|
| 203 * @param node The node to get an attribute from. | 203 * @param node The node to get an attribute from. |
| 204 * @param attr The attribute to get. | 204 * @param attr The attribute to get. |
| 205 * | 205 * |
| 206 * @return The value of the attribute. | 206 * @return The value of the attribute. |
| 207 */ | 207 */ |
| 208 const char *xmlnode_get_attrib(xmlnode *node, const char *attr); | 208 const char *xmlnode_get_attrib(const xmlnode *node, const char *attr); |
| 209 | 209 |
| 210 /** | 210 /** |
| 211 * Gets a namespaced attribute from a node | 211 * Gets a namespaced attribute from a node |
| 212 * | 212 * |
| 213 * @param node The node to get an attribute from. | 213 * @param node The node to get an attribute from. |
| 214 * @param attr The attribute to get | 214 * @param attr The attribute to get |
| 215 * @param xmlns The namespace of the attribute to get | 215 * @param xmlns The namespace of the attribute to get |
| 216 * | 216 * |
| 217 * @return The value of the attribute/ | 217 * @return The value of the attribute/ |
| 218 */ | 218 */ |
| 219 const char *xmlnode_get_attrib_with_namespace(xmlnode *node, const char *attr, const char *xmlns); | 219 const char *xmlnode_get_attrib_with_namespace(const xmlnode *node, const char *attr, const char *xmlns); |
| 220 | 220 |
| 221 /** | 221 /** |
| 222 * Removes an attribute from a node. | 222 * Removes an attribute from a node. |
| 223 * | 223 * |
| 224 * @param node The node to remove an attribute from. | 224 * @param node The node to remove an attribute from. |
