From 30f72a524e31b425bd2397c9dddea25bec14d1e5 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Wed, 6 Jan 2010 12:06:59 +0100 Subject: 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. --- dxr3.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'dxr3.c') 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) -- cgit v1.2.3