summaryrefslogtreecommitdiff
path: root/ci.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-01-07 15:16:09 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-01-07 15:16:09 +0100
commite8ee9a1c4b26c38a46e5872a62cb020473c949c9 (patch)
tree34b11f6209fef8a2269d2b80dbb85724b85ddd42 /ci.c
parente0d5ebf8fd1d508776d63026a9dd336fbb0d648d (diff)
downloadvdr-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.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/ci.c b/ci.c
index f2c4240f..863be533 100644
--- a/ci.c
+++ b/ci.c
@@ -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);