From 503a2b302d9e13b99be4574e5d7b8821dd31504d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 28 Jun 2012 21:59:59 +0300 Subject: Add validation for some xml parameters. --- src/utils/xml.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/utils/xml.h') diff --git a/src/utils/xml.h b/src/utils/xml.h index eb5ee88b0..a4ff7eb2e 100644 --- a/src/utils/xml.h +++ b/src/utils/xml.h @@ -85,6 +85,12 @@ namespace XML */ int getProperty(XmlNodePtr node, const char *name, int def); + /** + * Gets an integer property from an XmlNodePtr. + */ + int getIntProperty(XmlNodePtr node, const char* name, int def, + int min, int max); + /** * Gets a string property from an XmlNodePtr. */ -- cgit v1.2.3-70-g09d2