From 0e6296699e74bd0569bb47b1798972e69f15e4e5 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 31 Dec 2005 15:20:19 +0100 Subject: Changed the API of the functions cStatus::Recording() and cStatus::Replaying(), so that they can provide the full file name of the recording --- PLUGINS/src/status/HISTORY | 4 ++++ PLUGINS/src/status/status.c | 16 ++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'PLUGINS/src/status') diff --git a/PLUGINS/src/status/HISTORY b/PLUGINS/src/status/HISTORY index 1c399aab..998e23df 100644 --- a/PLUGINS/src/status/HISTORY +++ b/PLUGINS/src/status/HISTORY @@ -31,3 +31,7 @@ VDR Plugin 'status' Revision History 2002-12-13: Version 0.1.0 - Changed setting of CXX and CXXFLAGS variables in Makefile. + +2005-12-31: Version 0.2.0 + +- API change in cStatus. diff --git a/PLUGINS/src/status/status.c b/PLUGINS/src/status/status.c index a0346591..71639279 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 1.7 2002/12/13 15:01:53 kls Exp $ + * $Id: status.c 1.8 2005/12/31 15:19:45 kls Exp $ */ #include #include -static const char *VERSION = "0.1.0"; +static const char *VERSION = "0.2.0"; static const char *DESCRIPTION = "Status monitor test"; static const char *MAINMENUENTRY = NULL; @@ -18,8 +18,8 @@ static const char *MAINMENUENTRY = NULL; class cStatusTest : public cStatus { protected: virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber); - virtual void Recording(const cDevice *Device, const char *Name); - virtual void Replaying(const cControl *Control, const char *Name); + 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); virtual void OsdClear(void); virtual void OsdTitle(const char *Title); @@ -36,14 +36,14 @@ void cStatusTest::ChannelSwitch(const cDevice *Device, int ChannelNumber) dsyslog("status: cStatusTest::ChannelSwitch %d %d", Device->CardIndex(), ChannelNumber); } -void cStatusTest::Recording(const cDevice *Device, const char *Name) +void cStatusTest::Recording(const cDevice *Device, const char *Name, const char *FileName, bool On) { - dsyslog("status: cStatusTest::Recording %d %s", Device->CardIndex(), Name); + dsyslog("status: cStatusTest::Recording %d %s %s %d", Device->CardIndex(), Name, FileName, On); } -void cStatusTest::Replaying(const cControl *Control, const char *Name) +void cStatusTest::Replaying(const cControl *Control, const char *Name, const char *FileName, bool On) { - dsyslog("status: cStatusTest::Replaying %s", Name); + dsyslog("status: cStatusTest::Replaying %s %s %d", Name, FileName, On); } void cStatusTest::SetVolume(int Volume, bool Absolute) -- cgit v1.2.3