summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-04-17 09:10:39 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-04-17 09:10:39 +0200
commitacf716f1ef5e4cdbc2b38fecdf4d46b2ad75b747 (patch)
tree19e8f750d1092403c40078c607d94715fcb7ebb4 /svdrp.c
parent8c6deb20f2fc1c77c0fa2698e20f998ebda355a2 (diff)
downloadvdr-acf716f1ef5e4cdbc2b38fecdf4d46b2ad75b747.tar.gz
vdr-acf716f1ef5e4cdbc2b38fecdf4d46b2ad75b747.tar.bz2
The cRemote::CallPlugin() function now has a boolean return value that tells the caller whether initiating the plugin call was successful
Diffstat (limited to 'svdrp.c')
-rw-r--r--svdrp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/svdrp.c b/svdrp.c
index 0cf73e9f..e0b56e43 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
- * $Id: svdrp.c 1.94 2006/03/26 09:14:13 kls Exp $
+ * $Id: svdrp.c 1.95 2006/04/17 09:02:23 kls Exp $
*/
#include "svdrp.h"
@@ -1351,8 +1351,10 @@ void cSVDRP::CmdPLUG(const char *Option)
}
}
else if (strcasecmp(cmd, "MAIN") == 0) {
- cRemote::CallPlugin(plugin->Name());
- Reply(250, "Initiated call to main menu function of plugin \"%s\"", plugin->Name());
+ if (cRemote::CallPlugin(plugin->Name()))
+ Reply(250, "Initiated call to main menu function of plugin \"%s\"", plugin->Name());
+ else
+ Reply(550, "A plugin call is already pending - please try again later");
}
else {
int ReplyCode = 900;