diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-12-01 10:48:08 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-12-01 10:48:08 +0100 |
commit | 816e6847aac13ad51bf7d569b90be5f7fbe5c027 (patch) | |
tree | 779f79053d895066de16044c73bff327a9209d4c /vdr.c | |
parent | 125872e75f48af908bd008037226bbddb62666c1 (diff) | |
download | vdr-816e6847aac13ad51bf7d569b90be5f7fbe5c027.tar.gz vdr-816e6847aac13ad51bf7d569b90be5f7fbe5c027.tar.bz2 |
Macros in 'keymacros.conf' can now use "@plugin" to directly access the main menu function of a given plugin
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/people/kls/vdr * - * $Id: vdr.c 1.135 2002/11/30 14:37:45 kls Exp $ + * $Id: vdr.c 1.136 2002/12/01 10:44:48 kls Exp $ */ #include <getopt.h> @@ -480,7 +480,7 @@ int main(int argc, char *argv[]) Menu = new cMenuMain(cControl::Control()); Temp = NULL; break; - #define DirectMainFunction(function)\ + #define DirectMainFunction(function...)\ DELETENULL(Menu);\ if (cControl::Control())\ cControl::Control()->Hide();\ @@ -493,6 +493,7 @@ int main(int argc, char *argv[]) case kSetup: DirectMainFunction(osSetup); break; case kCommands: DirectMainFunction(osCommands); break; case kUser1 ... kUser9: cRemote::PutMacro(key); break; + case k_Plugin: DirectMainFunction(osPlugin, cRemote::GetPlugin()); break; // Channel up/down: case kChanUp|k_Repeat: case kChanUp: |