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 /remote.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 'remote.c')
-rw-r--r-- | remote.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: remote.c 1.31 2002/11/01 10:50:13 kls Exp $ + * $Id: remote.c 1.32 2002/12/01 10:40:04 kls Exp $ */ #include "remote.h" @@ -31,6 +31,7 @@ cRemote *cRemote::learning = NULL; char *cRemote::unknownCode = NULL; cMutex cRemote::mutex; cCondVar cRemote::keyPressed; +const char *cRemote::plugin = NULL; cRemote::cRemote(const char *Name) { @@ -88,6 +89,7 @@ bool cRemote::PutMacro(eKeys Key) { const cKeyMacro *km = KeyMacros.Get(Key); if (km) { + plugin = km->Plugin(); for (int i = 1; i < MAXKEYSINMACRO; i++) { if (km->Macro()[i] != kNone) { if (!Put(km->Macro()[i])) |