Adapted c(Dvb)Device::ProvidesCa() to the dynamic CA handling

This commit is contained in:
Klaus Schmidinger
2006-01-07 15:16:09 +01:00
parent e0d5ebf8fd
commit e8ee9a1c4b
6 changed files with 43 additions and 21 deletions

11
ci.c
View File

@@ -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);