summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-09-29 13:40:45 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-09-29 13:40:45 +0200
commitfc668608474ed16f015f71e57366f6bd2c5d8c8d (patch)
treecc94791b1001e240ded1dc7afdae8ed0e0c1a3b7 /svdrp.c
parentf3af8e065a6022ca7234bd6c60e061d2064a6dff (diff)
downloadvdr-fc668608474ed16f015f71e57366f6bd2c5d8c8d.tar.gz
vdr-fc668608474ed16f015f71e57366f6bd2c5d8c8d.tar.bz2
Made remote controls plugin aware
Diffstat (limited to 'svdrp.c')
-rw-r--r--svdrp.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/svdrp.c b/svdrp.c
index 3115349c..325b7dab 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.42 2002/09/08 11:22:57 kls Exp $
+ * $Id: svdrp.c 1.43 2002/09/28 15:50:19 kls Exp $
*/
#include "svdrp.h"
@@ -28,7 +28,8 @@
#include <unistd.h>
#include "config.h"
#include "device.h"
-#include "interface.h"
+#include "keys.h"
+#include "remote.h"
#include "tools.h"
// --- cSocket ---------------------------------------------------------------
@@ -606,9 +607,9 @@ void cSVDRP::CmdHELP(const char *Option)
void cSVDRP::CmdHITK(const char *Option)
{
if (*Option) {
- eKeys k = Keys.Translate(Option);
+ eKeys k = cKey::FromString(Option);
if (k != kNone) {
- Interface->PutKey(k);
+ cRemote::Put(k);
Reply(250, "Key \"%s\" accepted", Option);
}
else
@@ -617,7 +618,7 @@ void cSVDRP::CmdHITK(const char *Option)
else {
Reply(-214, "Valid <key> names for the HITK command:");
for (int i = 0; i < kNone; i++) {
- Reply(-214, " %s", Keys.keys[i].name);
+ Reply(-214, " %s", cKey::ToString(eKeys(i)));
}
Reply(214, "End of key list");
}