From acea8748a48f5c0302eb206cc5ea47d25f7e7a91 Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Sat, 10 Jan 2015 18:30:07 +0200 Subject: [PATCH] Added SATIP_XCI variable for enabling CI support. --- Makefile | 12 ++++++++++++ README | 1 - device.c | 2 +- setup.c | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9784547..dbc9403 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,10 @@ #SATIP_USE_TINYXML = 1 +# Enable CI extension - requires VDR API implementing GetPmt(int, int, int) + +#SATIP_XCI = 1 + # Strip debug symbols? Set eg. to /bin/true if not STRIP = strip @@ -76,8 +80,16 @@ LIBS += -lpugixml endif ifdef SATIP_DEBUG +ifeq ($(SATIP_DEBUG),1) DEFINES += -DDEBUG endif +endif + +ifdef SATIP_XCI +ifeq ($(SATIP_XCI),1) +DEFINES += -DXCI +endif +endif ifneq ($(strip $(GITTAG)),) DEFINES += -DGITVERSION='"-GIT-$(GITTAG)"' diff --git a/README b/README index f6c4322..5a5d155 100644 --- a/README +++ b/README @@ -27,7 +27,6 @@ Requirements: http://www.gnu.org/software/libc/ - VDR >= 2.1.4 for scrambled channels - >= 2.1.7 for Digital Devices CI extension Description: diff --git a/device.c b/device.c index ebd9e42..32bd624 100644 --- a/device.c +++ b/device.c @@ -431,7 +431,7 @@ int cSatipDevice::GetId(void) int cSatipDevice::GetPmtPid(void) { int pid = 0; -#if defined(APIVERSNUM) && APIVERSNUM >= 20107 +#ifdef XCI pid = channelM.Ca() ? ::GetPmtPid(channelM.Source(), channelM.Transponder(), channelM.Sid()) : 0; #endif debug11("%s pmtpid=%d source=%c transponder=%d sid=%d name=%s [device %u]", __PRETTY_FUNCTION__, pid, cSource::ToChar(channelM.Source()), channelM.Transponder(), channelM.Sid(), channelM.Name(), deviceIndexM); diff --git a/setup.c b/setup.c index b5047b8..b83e01e 100644 --- a/setup.c +++ b/setup.c @@ -368,7 +368,7 @@ void cSatipPluginSetup::Setup(void) helpM.Append(tr("Define the used operating mode for all SAT>IP devices:\n\noff - devices are disabled\nlow - devices are working at the lowest priority\nnormal - devices are working within normal parameters\nhigh - devices are working at the highest priority")); if (operatingModeM) { -#if defined(APIVERSNUM) && APIVERSNUM >= 20107 +#ifdef XCI Add(new cMenuEditBoolItem(tr("Enable CI extension"), &ciExtensionM)); helpM.Append(tr("Define whether a CI extension shall be used.\n\nThis setting enables integrated CI/CAM handling found in some SAT>IP hardware (e.g. Digital Devices OctopusNet).")); #endif