summaryrefslogtreecommitdiff
path: root/interface.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-01-11 13:42:26 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-01-11 13:42:26 +0100
commit34c79fdc503a2e63bc9907f68d77f2c4dd781a0c (patch)
tree148d316603b821bec88f513829a0d712418f19db /interface.c
parentc8e789e12a2eeed68800c26b86c08d6a7b888168 (diff)
downloadvdr-34c79fdc503a2e63bc9907f68d77f2c4dd781a0c.tar.gz
vdr-34c79fdc503a2e63bc9907f68d77f2c4dd781a0c.tar.bz2
Fixed support for systemd
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/interface.c b/interface.c
index 82091d99..6bf7ffce 100644
--- a/interface.c
+++ b/interface.c
@@ -4,12 +4,15 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: interface.c 2.2 2012/11/19 12:21:43 kls Exp $
+ * $Id: interface.c 3.1 2015/01/11 13:37:47 kls Exp $
*/
#include "interface.h"
#include <ctype.h>
#include <stdlib.h>
+#ifdef SDNOTIFY
+#include <systemd/sd-daemon.h>
+#endif
#include <unistd.h>
#include "i18n.h"
#include "status.h"
@@ -159,6 +162,9 @@ void cInterface::LearnKeys(void)
bool known = Keys.KnowsRemote(Remote->Name());
dsyslog("remote control %s - %s", Remote->Name(), known ? "keys known" : "learning keys");
if (!known) {
+#ifdef SDNOTIFY
+ sd_notify(0, "READY=1\nSTATUS=Learning keys...");
+#endif
cSkinDisplayMenu *DisplayMenu = Skins.Current()->DisplayMenu();
DisplayMenu->SetMenuCategory(mcUnknown);
char Headline[256];