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:

committed by
Chris Lahey

parent
14bfde56c8
commit
c2ffbbece7
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user