diff options
Diffstat (limited to 'PLUGINS/src/status')
-rw-r--r-- | PLUGINS/src/status/HISTORY | 4 | ||||
-rw-r--r-- | PLUGINS/src/status/Makefile | 4 | ||||
-rw-r--r-- | PLUGINS/src/status/status.c | 10 |
3 files changed, 11 insertions, 7 deletions
diff --git a/PLUGINS/src/status/HISTORY b/PLUGINS/src/status/HISTORY index f652068..01af66a 100644 --- a/PLUGINS/src/status/HISTORY +++ b/PLUGINS/src/status/HISTORY @@ -44,3 +44,7 @@ VDR Plugin 'status' Revision History 2008-02-16: Version 0.3.0 - Added new cStatus functions. + +2012-03-11: Version 0.3.1 + +- Added new parameter LiveView to ChannelSwitch() (reported by Udo Richter). diff --git a/PLUGINS/src/status/Makefile b/PLUGINS/src/status/Makefile index 3e9b170..dd46ba6 100644 --- a/PLUGINS/src/status/Makefile +++ b/PLUGINS/src/status/Makefile @@ -1,7 +1,7 @@ # # Makefile for a Video Disk Recorder plugin # -# $Id: Makefile 2.4 2012/01/18 12:17:23 kls Exp $ +# $Id: Makefile 2.5 2012/03/11 15:34:20 kls Exp $ # The official name of this plugin. # This name will be used in the '-P...' option of VDR to load the plugin. @@ -16,7 +16,7 @@ VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ pri ### The C++ compiler and options: CXX ?= g++ -CXXFLAGS ?= -g -O3 -Wall -Woverloaded-virtual -Wno-parentheses +CXXFLAGS ?= -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses ### The directory environment: diff --git a/PLUGINS/src/status/status.c b/PLUGINS/src/status/status.c index 5c1f7da..e27fa5d 100644 --- a/PLUGINS/src/status/status.c +++ b/PLUGINS/src/status/status.c @@ -3,13 +3,13 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: status.c 2.0 2008/02/16 15:41:05 kls Exp $ + * $Id: status.c 2.1 2012/03/11 14:48:37 kls Exp $ */ #include <vdr/plugin.h> #include <vdr/status.h> -static const char *VERSION = "0.3.0"; +static const char *VERSION = "0.3.1"; static const char *DESCRIPTION = "Status monitor test"; static const char *MAINMENUENTRY = NULL; @@ -18,7 +18,7 @@ static const char *MAINMENUENTRY = NULL; class cStatusTest : public cStatus { protected: virtual void TimerChange(const cTimer *Timer, eTimerChange Change); - virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber); + virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber, bool LiveView); virtual void Recording(const cDevice *Device, const char *Name, const char *FileName, bool On); virtual void Replaying(const cControl *Control, const char *Name, const char *FileName, bool On); virtual void SetVolume(int Volume, bool Absolute); @@ -41,9 +41,9 @@ void cStatusTest::TimerChange(const cTimer *Timer, eTimerChange Change) dsyslog("status: cStatusTest::TimerChange %s %d", Timer ? *Timer->ToText(true) : "-", Change); } -void cStatusTest::ChannelSwitch(const cDevice *Device, int ChannelNumber) +void cStatusTest::ChannelSwitch(const cDevice *Device, int ChannelNumber, bool LiveView) { - dsyslog("status: cStatusTest::ChannelSwitch %d %d", Device->CardIndex(), ChannelNumber); + dsyslog("status: cStatusTest::ChannelSwitch %d %d %d", Device->CardIndex(), ChannelNumber, LiveView); } void cStatusTest::Recording(const cDevice *Device, const char *Name, const char *FileName, bool On) |