changeset 10736:703f722d076f

[gaim-migrate @ 12338] Change 2 parameters to "const" committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 26 Mar 2005 19:13:15 +0000
parents a0edd89ddb83
children b7f0bc436179
files src/xmlnode.c src/xmlnode.h
diffstat 2 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmlnode.c	Sat Mar 26 05:23:44 2005 +0000
+++ b/src/xmlnode.c	Sat Mar 26 19:13:15 2005 +0000
@@ -186,7 +186,13 @@
 }
 
 xmlnode*
-xmlnode_get_child_with_namespace(xmlnode *parent, const char *name, const char *ns)
+xmlnode_get_child(const xmlnode *parent, const char *name)
+{
+	return xmlnode_get_child_with_namespace(parent, name, NULL);
+}
+
+xmlnode *
+xmlnode_get_child_with_namespace(const xmlnode *parent, const char *name, const char *ns)
 {
 	xmlnode *x, *ret = NULL;
 	char **names;
@@ -217,12 +223,6 @@
 	return ret;
 }
 
-xmlnode*
-xmlnode_get_child(xmlnode *parent, const char *name)
-{
-	return xmlnode_get_child_with_namespace(parent, name, NULL);
-}
-
 char *
 xmlnode_get_data(xmlnode *node)
 {
--- a/src/xmlnode.h	Sat Mar 26 05:23:44 2005 +0000
+++ b/src/xmlnode.h	Sat Mar 26 19:13:15 2005 +0000
@@ -84,7 +84,7 @@
  *
  * @return The child or NULL.
  */
-xmlnode *xmlnode_get_child(xmlnode *parent, const char *name);
+xmlnode *xmlnode_get_child(const xmlnode *parent, const char *name);
 
 /**
  * Gets a child node named name in a namespace.
@@ -95,7 +95,7 @@
  *
  * @return The child or NULL.
  */
-xmlnode *xmlnode_get_child_with_namespace(xmlnode *parent, const char *name, const char *xmlns);
+xmlnode *xmlnode_get_child_with_namespace(const xmlnode *parent, const char *name, const char *xmlns);
 
 /**
  * Gets the next node with the same name as node.