diff options
-rw-r--r-- | e-util/ChangeLog | 4 | ||||
-rw-r--r-- | e-util/e-xml-utils.c | 8 | ||||
-rw-r--r-- | e-util/e-xml-utils.c-56826 | 8 | ||||
-rw-r--r-- | e-util/e-xml-utils.h | 9 | ||||
-rw-r--r-- | e-util/e-xml-utils.h-82548 | 9 |
5 files changed, 22 insertions, 16 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 7300af216a..8c62ab6dd2 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,7 @@ +2000-05-01 Ettore Perazzoli <ettore@helixcode.com> + + * e-xml-utils.c, e-xml-utils.h: Constified all the functions. + 2000-04-27 Dan Winship <danw@helixcode.com> * e-html-utils.c (e_text_to_html): Moved here from the mailer, diff --git a/e-util/e-xml-utils.c b/e-util/e-xml-utils.c index 7e88dbaedd..33b9d28235 100644 --- a/e-util/e-xml-utils.c +++ b/e-util/e-xml-utils.c @@ -25,7 +25,7 @@ #include <gnome-xml/parser.h> -xmlNode *e_xml_get_child_by_name(xmlNode *parent, xmlChar *child_name) +xmlNode *e_xml_get_child_by_name(xmlNode *parent, const xmlChar *child_name) { xmlNode *child; @@ -45,7 +45,7 @@ xmlNode *e_xml_get_child_by_name(xmlNode *parent, xmlChar *child_name) * child with the name child_name and no "lang" attribute. */ xmlNode * -e_xml_get_child_by_name_by_lang(xmlNode *parent, xmlChar *child_name, char *lang) +e_xml_get_child_by_name_by_lang(xmlNode *parent, const xmlChar *child_name, const char *lang) { xmlNode *child; /* This is the default version of the string. */ @@ -71,7 +71,7 @@ e_xml_get_child_by_name_by_lang(xmlNode *parent, xmlChar *child_name, char *lang } int -e_xml_get_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name) +e_xml_get_integer_prop_by_name(xmlNode *parent, const xmlChar *prop_name) { xmlChar *prop; @@ -86,7 +86,7 @@ e_xml_get_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name) } void -e_xml_set_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name, int value) +e_xml_set_integer_prop_by_name(xmlNode *parent, const xmlChar *prop_name, int value) { xmlChar *valuestr; diff --git a/e-util/e-xml-utils.c-56826 b/e-util/e-xml-utils.c-56826 index 7e88dbaedd..33b9d28235 100644 --- a/e-util/e-xml-utils.c-56826 +++ b/e-util/e-xml-utils.c-56826 @@ -25,7 +25,7 @@ #include <gnome-xml/parser.h> -xmlNode *e_xml_get_child_by_name(xmlNode *parent, xmlChar *child_name) +xmlNode *e_xml_get_child_by_name(xmlNode *parent, const xmlChar *child_name) { xmlNode *child; @@ -45,7 +45,7 @@ xmlNode *e_xml_get_child_by_name(xmlNode *parent, xmlChar *child_name) * child with the name child_name and no "lang" attribute. */ xmlNode * -e_xml_get_child_by_name_by_lang(xmlNode *parent, xmlChar *child_name, char *lang) +e_xml_get_child_by_name_by_lang(xmlNode *parent, const xmlChar *child_name, const char *lang) { xmlNode *child; /* This is the default version of the string. */ @@ -71,7 +71,7 @@ e_xml_get_child_by_name_by_lang(xmlNode *parent, xmlChar *child_name, char *lang } int -e_xml_get_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name) +e_xml_get_integer_prop_by_name(xmlNode *parent, const xmlChar *prop_name) { xmlChar *prop; @@ -86,7 +86,7 @@ e_xml_get_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name) } void -e_xml_set_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name, int value) +e_xml_set_integer_prop_by_name(xmlNode *parent, const xmlChar *prop_name, int value) { xmlChar *valuestr; diff --git a/e-util/e-xml-utils.h b/e-util/e-xml-utils.h index 77cc14bdd5..41b0f0b9d6 100644 --- a/e-util/e-xml-utils.h +++ b/e-util/e-xml-utils.h @@ -25,10 +25,11 @@ #include <gnome.h> #include <gnome-xml/tree.h> -xmlNode *e_xml_get_child_by_name(xmlNode *parent, xmlChar *child_name); + +xmlNode *e_xml_get_child_by_name(xmlNode *parent, const xmlChar *child_name); /* lang set to NULL means use the current locale. */ -xmlNode *e_xml_get_child_by_name_by_lang(xmlNode *parent, xmlChar *child_name, char *lang); -int e_xml_get_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name); -void e_xml_set_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name, int value); +xmlNode *e_xml_get_child_by_name_by_lang(xmlNode *parent, const xmlChar *child_name, const char *lang); +int e_xml_get_integer_prop_by_name(xmlNode *parent, const xmlChar *prop_name); +void e_xml_set_integer_prop_by_name(xmlNode *parent, const xmlChar *prop_name, int value); #endif /* __E_XML_UTILS__ */ diff --git a/e-util/e-xml-utils.h-82548 b/e-util/e-xml-utils.h-82548 index 77cc14bdd5..41b0f0b9d6 100644 --- a/e-util/e-xml-utils.h-82548 +++ b/e-util/e-xml-utils.h-82548 @@ -25,10 +25,11 @@ #include <gnome.h> #include <gnome-xml/tree.h> -xmlNode *e_xml_get_child_by_name(xmlNode *parent, xmlChar *child_name); + +xmlNode *e_xml_get_child_by_name(xmlNode *parent, const xmlChar *child_name); /* lang set to NULL means use the current locale. */ -xmlNode *e_xml_get_child_by_name_by_lang(xmlNode *parent, xmlChar *child_name, char *lang); -int e_xml_get_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name); -void e_xml_set_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name, int value); +xmlNode *e_xml_get_child_by_name_by_lang(xmlNode *parent, const xmlChar *child_name, const char *lang); +int e_xml_get_integer_prop_by_name(xmlNode *parent, const xmlChar *prop_name); +void e_xml_set_integer_prop_by_name(xmlNode *parent, const xmlChar *prop_name, int value); #endif /* __E_XML_UTILS__ */ |