Added e_xml_get_integer_prop_by_name.

2000-02-24  Christopher James Lahey  <clahey@helixcode.com>

        * e-util/e-xml-utils.c, e-util/e-xml-utils.h: Added
        e_xml_get_integer_prop_by_name.

        * e-util/Makefile.am: Added e-util.c.

        * e-util/e-util.h: Added e-util.c functions.

        * e-util/e-util.c: New file for compare functions

from mail:

2000-02-24  Christopher James Lahey  <clahey@helixcode.com>

        * message-list.c: Changed to match new e_table_simple interface.

svn path=/trunk/; revision=1931
This commit is contained in:
Christopher James Lahey
2000-02-25 04:28:14 +00:00
committed by Chris Lahey
parent 14bfde56c8
commit c2ffbbece7
13 changed files with 143 additions and 4 deletions

View File

@ -34,3 +34,13 @@ xmlNode *e_xml_get_child_by_name(xmlNode *parent, xmlChar *child_name)
}
return NULL;
}
int
e_xml_get_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name)
{
xmlChar *prop = xmlGetProp(parent, prop_name);
if (prop)
return atoi(prop);
else
return 0;
}