diff options
author | Matt Kraai <kraai@ftbfs.org> | 2009-10-15 22:01:24 +0100 |
---|---|---|
committer | Matt Kraai <kraai@ftbfs.org> | 2009-10-15 22:01:24 +0100 |
commit | 6efc8270ef8f75a842930a0f703cb3539f106d4b (patch) | |
tree | 441ef4577e24fe4dfef3ee823fbbf74f9920b2ab /src/xine-utils/xmlparser.h | |
parent | 93d452a4570cf3f4dd81c6c2cab66aa604f39e05 (diff) | |
download | xine-lib-6efc8270ef8f75a842930a0f703cb3539f106d4b.tar.gz xine-lib-6efc8270ef8f75a842930a0f703cb3539f106d4b.tar.bz2 |
Make the XML lexer and parser re-entrant
Diffstat (limited to 'src/xine-utils/xmlparser.h')
-rw-r--r-- | src/xine-utils/xmlparser.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/xine-utils/xmlparser.h b/src/xine-utils/xmlparser.h index 98695a756..fe94e4b76 100644 --- a/src/xine-utils/xmlparser.h +++ b/src/xine-utils/xmlparser.h @@ -22,6 +22,10 @@ #ifndef XML_PARSER_H #define XML_PARSER_H +#ifndef XINE_DEPRECATED +#define XINE_DEPRECATED +#endif + #ifndef XINE_PROTECTED #define XINE_PROTECTED #endif @@ -51,9 +55,18 @@ typedef struct xml_node_s { struct xml_node_s *next; } xml_node_t; -void xml_parser_init(const char * buf, int size, int mode) XINE_PROTECTED; +/* xml parser */ +typedef struct xml_parser_s { + struct lexer *lexer; + int mode; +} xml_parser_t; + +void xml_parser_init(const char * buf, int size, int mode) XINE_DEPRECATED XINE_PROTECTED; +xml_parser_t *xml_parser_init_r(const char * buf, int size, int mode) XINE_PROTECTED; +void xml_parser_finalize_r(xml_parser_t *xml_parser) XINE_PROTECTED; -int xml_parser_build_tree(xml_node_t **root_node) XINE_PROTECTED; +int xml_parser_build_tree(xml_node_t **root_node) XINE_DEPRECATED XINE_PROTECTED; +int xml_parser_build_tree_r(xml_parser_t *xml_parser, xml_node_t **root_node) XINE_PROTECTED; void xml_parser_free_tree(xml_node_t *root_node) XINE_PROTECTED; |