From 7a1df8370c3fa8ae1d6748863d58df4c79c33a5d Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Tue, 14 Feb 2006 02:25:00 +0000 Subject: Minor constness fixups. Remove some unnecessary NULL tests (free()). Replace an unneeded printf() wrapper. CVS patchset: 7891 CVS date: 2006/02/14 02:25:00 --- src/xine-utils/xmlparser.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/xine-utils/xmlparser.h') diff --git a/src/xine-utils/xmlparser.h b/src/xine-utils/xmlparser.h index 45217d3f9..35155fa79 100644 --- a/src/xine-utils/xmlparser.h +++ b/src/xine-utils/xmlparser.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xmlparser.h,v 1.3 2005/01/16 17:51:04 dsalt Exp $ + * $Id: xmlparser.h,v 1.4 2006/02/14 02:25:01 dsalt Exp $ * */ #ifndef XML_PARSER_H @@ -48,16 +48,16 @@ typedef struct xml_node_s { struct xml_node_s *next; } xml_node_t; -void xml_parser_init(char * buf, int size, int mode); +void xml_parser_init(const char * buf, int size, int mode); int xml_parser_build_tree(xml_node_t **root_node); void xml_parser_free_tree(xml_node_t *root_node); -char *xml_parser_get_property (xml_node_t *node, const char *name); -int xml_parser_get_property_int (xml_node_t *node, const char *name, +char *xml_parser_get_property (const xml_node_t *node, const char *name); +int xml_parser_get_property_int (const xml_node_t *node, const char *name, int def_value); -int xml_parser_get_property_bool (xml_node_t *node, const char *name, +int xml_parser_get_property_bool (const xml_node_t *node, const char *name, int def_value); /* for output: @@ -76,6 +76,6 @@ char *xml_escape_string (const char *s, xml_escape_quote_t quote_type); * indented fashion */ -void xml_parser_dump_tree (xml_node_t *node) ; +void xml_parser_dump_tree (const xml_node_t *node) ; #endif -- cgit v1.2.3