diff options
Diffstat (limited to 'PLUGINS/src/sky')
-rw-r--r-- | PLUGINS/src/sky/HISTORY | 4 | ||||
-rw-r--r-- | PLUGINS/src/sky/Makefile | 4 | ||||
-rw-r--r-- | PLUGINS/src/sky/sky.c | 12 |
3 files changed, 15 insertions, 5 deletions
diff --git a/PLUGINS/src/sky/HISTORY b/PLUGINS/src/sky/HISTORY index d41904e..d3da71e 100644 --- a/PLUGINS/src/sky/HISTORY +++ b/PLUGINS/src/sky/HISTORY @@ -12,3 +12,7 @@ VDR Plugin 'sky' Revision History 2003-05-09: Version 0.1.1 - Changed Start() to Initialize(). + +2004-01-04: Version 0.2.0 + +- Implemented automatic PID switching and channel detection diff --git a/PLUGINS/src/sky/Makefile b/PLUGINS/src/sky/Makefile index 3df93c1..13d623b 100644 --- a/PLUGINS/src/sky/Makefile +++ b/PLUGINS/src/sky/Makefile @@ -1,7 +1,7 @@ # # Makefile for a Video Disk Recorder plugin # -# $Id: Makefile 1.2 2002/12/13 14:54:24 kls Exp $ +# $Id: Makefile 1.3 2003/12/21 15:47:31 kls Exp $ # The official name of this plugin. # This name will be used in the '-P...' option of VDR to load the plugin. @@ -42,7 +42,7 @@ PACKAGE = vdr-$(ARCHIVE) INCLUDES += -I$(VDRDIR)/include -I$(DVBDIR)/include -DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' +DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' ### The object files (add further files here): diff --git a/PLUGINS/src/sky/sky.c b/PLUGINS/src/sky/sky.c index ae59137..750d778 100644 --- a/PLUGINS/src/sky/sky.c +++ b/PLUGINS/src/sky/sky.c @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: sky.c 1.3 2003/05/09 15:27:16 kls Exp $ + * $Id: sky.c 1.4 2004/01/04 15:29:15 kls Exp $ */ #include <sys/socket.h> @@ -14,7 +14,7 @@ #include <vdr/plugin.h> #include <vdr/sources.h> -static const char *VERSION = "0.1.1"; +static const char *VERSION = "0.2.0"; static const char *DESCRIPTION = "Sky Digibox interface"; // --- cDigiboxDevice -------------------------------------------------------- @@ -37,6 +37,7 @@ public: cDigiboxDevice(void); virtual ~cDigiboxDevice(); virtual bool ProvidesSource(int Source) const; + virtual bool ProvidesTransponder(const cChannel *Channel) const; virtual bool ProvidesChannel(const cChannel *Channel, int Priority = -1, bool *NeedsSetChannel = NULL) const; virtual bool SetChannelDevice(const cChannel *Channel, bool LiveView); }; @@ -137,13 +138,18 @@ bool cDigiboxDevice::ProvidesSource(int Source) const return source == Source; } +bool cDigiboxDevice::ProvidesTransponder(const cChannel *Channel) const +{ + return false; // can't provide any actual transponder +} + bool cDigiboxDevice::ProvidesChannel(const cChannel *Channel, int Priority, bool *NeedsDetachReceivers) const { bool result = false; bool hasPriority = Priority < 0 || Priority > this->Priority(); bool needsDetachReceivers = true; - if (ProvidesSource(Channel->Source()) && ProvidesCa(Channel->Ca())) { + if (ProvidesSource(Channel->Source()) && Channel->Ca() == 0x30) {//XXX if (Receiving()) { if (digiboxChannelNumber == Channel->Frequency()) { needsDetachReceivers = false; |