diff options
Diffstat (limited to 'libtemplate')
-rw-r--r-- | libtemplate/xmlparser.c | 10 | ||||
-rw-r--r-- | libtemplate/xmlparser.h | 4 |
2 files changed, 11 insertions, 3 deletions
diff --git a/libtemplate/xmlparser.c b/libtemplate/xmlparser.c index 4b8e85a..0fede38 100644 --- a/libtemplate/xmlparser.c +++ b/libtemplate/xmlparser.c @@ -13,7 +13,6 @@ cXmlParser::cXmlParser(void) { root = NULL; ctxt = NULL; - xmlInitParser(); initGenericErrorDefaultFunc(NULL); xmlSetStructuredErrorFunc(NULL, SkinDesignerXMLErrorHandler); ctxt = xmlNewParserCtxt(); @@ -22,7 +21,6 @@ cXmlParser::cXmlParser(void) { cXmlParser::~cXmlParser() { DeleteDocument(); xmlFreeParserCtxt(ctxt); - xmlCleanupParser(); } /********************************************************************* @@ -801,3 +799,11 @@ bool cXmlParser::DebugViewElement(xmlNodePtr node) { } return false; } + +void cXmlParser::InitLibXML() { + xmlInitParser(); +} + +void cXmlParser::CleanupLibXML() { + xmlCleanupParser(); +} diff --git a/libtemplate/xmlparser.h b/libtemplate/xmlparser.h index 3156042..18476e9 100644 --- a/libtemplate/xmlparser.h +++ b/libtemplate/xmlparser.h @@ -53,6 +53,8 @@ public: bool ParsePluginView(string plugName, int templateNumber); bool ParseGlobals(void); void DeleteDocument(void); + static void InitLibXML(); + static void CleanupLibXML(); }; -#endif //__XMLPARSER_H
\ No newline at end of file +#endif //__XMLPARSER_H |