summaryrefslogtreecommitdiff
path: root/src/xmlmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmlmenu.cpp')
-rw-r--r--src/xmlmenu.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/xmlmenu.cpp b/src/xmlmenu.cpp
index b3dea53..d2308ca 100644
--- a/src/xmlmenu.cpp
+++ b/src/xmlmenu.cpp
@@ -10,12 +10,8 @@
using namespace xmlpp;
using namespace std;
-MenuNode* XmlMenu::LoadXmlMenu()
+MenuNode* XmlMenu::LoadXmlMenu(string menuFileName)
{
- // TODO: show how vdr handels the path vars (developer doc)
- // and change code for dynamic path vars
- const char *File = "/var/lib/vdr/plugins/vdr-menu.xml";
-
MenuNode* menuRoot = new MenuNode();
try
@@ -25,7 +21,7 @@ MenuNode* XmlMenu::LoadXmlMenu()
//TODO: patch the xmlfile with the xsd definition for validate the schema
//parser.set_validate();
parser.set_substitute_entities(); //We just want the text to be resolved/unescaped automatically.
- parser.parse_file(File);
+ parser.parse_file(menuFileName);
const Element* rootElement = parser.get_document()->get_root_node();