diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-10-20 12:28:55 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-10-20 12:28:55 +0200 |
commit | ac9622bb8ad8d660fca4e77460c970f72c344afa (patch) | |
tree | 9738265846abf2c1a491cfec77a4e55f434297be /vdr.c | |
parent | ab4ceb29a033f8a3cc051d5ea9a6f20ca6e75f8a (diff) | |
download | vdr-ac9622bb8ad8d660fca4e77460c970f72c344afa.tar.gz vdr-ac9622bb8ad8d660fca4e77460c970f72c344afa.tar.bz2 |
Timers now internally have a pointer to their channel
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/people/kls/vdr * - * $Id: vdr.c 1.127 2002/10/13 12:13:19 kls Exp $ + * $Id: vdr.c 1.128 2002/10/20 12:09:45 kls Exp $ */ #include <getopt.h> @@ -47,6 +47,7 @@ #include "rcu.h" #include "recording.h" #include "sources.h" +#include "timers.h" #include "tools.h" #include "videodir.h" @@ -603,8 +604,8 @@ int main(int argc, char *argv[]) if (WatchdogTimeout > 0) signal(SIGALRM, SIG_IGN); if (Interface->Confirm(tr("Press any key to cancel shutdown"), UserShutdown ? 5 : SHUTDOWNWAIT, true)) { - int Channel = timer ? timer->channel : 0; - const char *File = timer ? timer->file : ""; + int Channel = timer ? timer->Channel()->Number() : 0; + const char *File = timer ? timer->File() : ""; char *cmd; asprintf(&cmd, "%s %ld %ld %d \"%s\" %d", Shutdown, Next, Delta, Channel, strescape(File, "\"$"), UserShutdown); isyslog("executing '%s'", cmd); |