diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-07 15:16:09 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-07 15:16:09 +0100 |
commit | e8ee9a1c4b26c38a46e5872a62cb020473c949c9 (patch) | |
tree | 34b11f6209fef8a2269d2b80dbb85724b85ddd42 /ci.c | |
parent | e0d5ebf8fd1d508776d63026a9dd336fbb0d648d (diff) | |
download | vdr-e8ee9a1c4b26c38a46e5872a62cb020473c949c9.tar.gz vdr-e8ee9a1c4b26c38a46e5872a62cb020473c949c9.tar.bz2 |
Adapted c(Dvb)Device::ProvidesCa() to the dynamic CA handling
Diffstat (limited to 'ci.c')
-rw-r--r-- | ci.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: ci.c 1.41 2005/12/30 15:41:38 kls Exp $ + * $Id: ci.c 1.42 2006/01/07 15:07:16 kls Exp $ */ #include "ci.h" @@ -1639,6 +1639,15 @@ int cCiHandler::CloseAllSessions(int Slot) return result; } +int cCiHandler::NumCams(void) +{ + int result = 0; + for (int i = 0; i < MAX_CI_SLOT; i++) + if (moduleReady[i]) + result++; + return result; +} + bool cCiHandler::Ready(void) { cMutexLock MutexLock(&mutex); |