diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2006-02-14 02:25:00 +0000 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2006-02-14 02:25:00 +0000 |
commit | 7a1df8370c3fa8ae1d6748863d58df4c79c33a5d (patch) | |
tree | ef95518044afab89e29b6139478644eeacfcd3d8 /src/xine-utils/xmlparser.h | |
parent | 5a0c3719740f0143d0edaff6fd99daf50fb52944 (diff) | |
download | xine-lib-7a1df8370c3fa8ae1d6748863d58df4c79c33a5d.tar.gz xine-lib-7a1df8370c3fa8ae1d6748863d58df4c79c33a5d.tar.bz2 |
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
Diffstat (limited to 'src/xine-utils/xmlparser.h')
-rw-r--r-- | src/xine-utils/xmlparser.h | 12 |
1 files changed, 6 insertions, 6 deletions
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 |