summaryrefslogtreecommitdiff
path: root/libtemplate
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-11-15 11:15:48 +0100
committerlouis <louis.braun@gmx.de>2014-11-15 11:15:48 +0100
commit0ed710a86884136a7bd772322f13f0b176a5dc22 (patch)
treecd4ae6f14b29988d35ce67acb9012c610348bc95 /libtemplate
parentf225c38103013faf38512cc61362cf9bb9088ba6 (diff)
parent7a69d868c422218817f1c92a6666ee6c83825d23 (diff)
downloadvdr-plugin-skindesigner-0.0.5.tar.gz
vdr-plugin-skindesigner-0.0.5.tar.bz2
Version 0.0.5 - added SVG Support0.0.5
Diffstat (limited to 'libtemplate')
-rw-r--r--libtemplate/xmlparser.c10
-rw-r--r--libtemplate/xmlparser.h4
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