diff options
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c new file mode 100644 index 0000000..f24a406 --- /dev/null +++ b/monitor.c @@ -0,0 +1,31 @@ +/* + * monitor.c: A plugin for the Video Disk Recorder + * + * See the README file for copyright information and how to reach the author. + * + * $Id$ + */ + +#include <vdr/eitscan.h> +#include <vdr/channels.h> + +#include "monitor.h" +#include "setup-zaphistory.h" +#include "zaphistory.h" + +void cZapHistoryMonitor::ChannelSwitch(const cDevice *Device, int ChannelNumber, bool LiveView) +{ + // Inform history, that channel has been switched + if (ChannelNumber > 0 && Device->IsPrimaryDevice() && LiveView ) + { + ZapHistory.ChannelSwitch( Channels.GetByNumber (ChannelNumber) ); + } +} + +void cZapHistoryMonitor::Replaying(const cControl *Control, const char *Name, const char *FileName, bool On) { + // Inform history, that live viewing has been started/stopped + if (On) + ZapHistory.ViewInterrupted(); + else + ZapHistory.ViewContinue(); +} |