summaryrefslogtreecommitdiff
path: root/dxr3.c
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2010-01-06 12:06:59 +0100
committerChristian Gmeiner <christian.gmeiner@gmail.com>2010-01-06 12:06:59 +0100
commit30f72a524e31b425bd2397c9dddea25bec14d1e5 (patch)
tree79c050aa1b2b1c19b0c8f05108c481d776b709c0 /dxr3.c
parentdbab37dc8ea0dd7de03f76b919bed557d851e7f8 (diff)
downloadvdr-plugin-dxr3-30f72a524e31b425bd2397c9dddea25bec14d1e5.tar.gz
vdr-plugin-dxr3-30f72a524e31b425bd2397c9dddea25bec14d1e5.tar.bz2
fix bug #223 by adding a command line option to enable automatic fw loading
By default the vdr-dxr3-plugin does not load the fw automatically any more, as on recent linux systems the fw gets loaded when the em8300 driver module gets loaded. So we dont need to load the fw. But for older systems there is the command option -f/--firmware-loading to tell the plugin to load the firmware at startup.
Diffstat (limited to 'dxr3.c')
-rw-r--r--dxr3.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/dxr3.c b/dxr3.c
index 8494f6d..9d3ee96 100644
--- a/dxr3.c
+++ b/dxr3.c
@@ -127,6 +127,9 @@ public:
const char* MainMenuEntry();
cOsdObject* MainMenuAction();
+ virtual const char *CommandLineHelp();
+ virtual bool ProcessArgs(int argc, char *argv[]);
+
virtual const char **SVDRPHelpPages(void);
virtual cString SVDRPCommand(const char *Command, const char *Option,
int &ReplyCode);
@@ -225,6 +228,16 @@ cOsdObject* cPluginDxr3::MainMenuAction()
return new cDxr3OsdMenu;
}
+const char *cPluginDxr3::CommandLineHelp()
+{
+ return " -f --firmware-loading Enable automatic firmware loading\n"
+}
+
+bool cPluginDxr3::ProcessArgs(int argc, char *argv[])
+{
+ return cSettings::instance()->processArgs(argc, argv);
+}
+
// ==================================
// TODO: localize command descriptions?
const char **cPluginDxr3::SVDRPHelpPages(void)