summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-12-01 10:48:08 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-12-01 10:48:08 +0100
commit816e6847aac13ad51bf7d569b90be5f7fbe5c027 (patch)
tree779f79053d895066de16044c73bff327a9209d4c /remote.c
parent125872e75f48af908bd008037226bbddb62666c1 (diff)
downloadvdr-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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/remote.c b/remote.c
index 415e37ea..7157a5f5 100644
--- a/remote.c
+++ b/remote.c
@@ -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]))