summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorMidas <vdrportal_midas@gmx.de>2010-04-22 12:49:36 +0200
committerMidas <vdrportal_midas@gmx.de>2010-04-22 12:49:36 +0200
commitd8df53ab68aa2031da1d49a8eb8897aa52ae0b2d (patch)
treec8c569ac7c94f6636c510382d4ba22d639aaa7dd /config.c
parent4921cf32c8bda089a21dc4a14ce191ed477f80ff (diff)
downloadvdr-plugin-block-d8df53ab68aa2031da1d49a8eb8897aa52ae0b2d.tar.gz
vdr-plugin-block-d8df53ab68aa2031da1d49a8eb8897aa52ae0b2d.tar.bz2
Changed source directory structure.
Diffstat (limited to 'config.c')
-rw-r--r--config.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/config.c b/config.c
new file mode 100644
index 0000000..3b0a6f5
--- /dev/null
+++ b/config.c
@@ -0,0 +1,27 @@
+/**
+ * based on config.c,v 1.1.1.1 2006/02/26 14:11:02 lordjaxom
+ *
+ * version by Midas
+ *
+ */
+
+#include "config.h"
+
+#include <stdlib.h>
+#include <string.h>
+
+cSetupBlock SetupBlock;
+
+cSetupBlock::cSetupBlock(void):
+ HideMenuEntry(0),
+ MessageTimeout(2)
+{
+}
+
+bool cSetupBlock::Parse(const char *Name, const char *Value)
+{
+ if (strcmp(Name, "HideMenuEntry") == 0) HideMenuEntry = atoi(Value);
+ else if (strcmp(Name, "MessageTimeout") == 0) MessageTimeout = atoi(Value);
+ else return false;
+ return true;
+}