summaryrefslogtreecommitdiff
path: root/ci.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2014-01-16 11:57:54 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2014-01-16 11:57:54 +0100
commit1df6a87249291566d978f3d104ca68dbb075b37b (patch)
tree06b09b7d54471b34156392055347fbc48da0b552 /ci.h
parente02d608bce5e4c4f484f7e9bd81e23637968d10c (diff)
downloadvdr-1df6a87249291566d978f3d104ca68dbb075b37b.tar.gz
vdr-1df6a87249291566d978f3d104ca68dbb075b37b.tar.bz2
Now waiting explicitly until all CAM slots are ready before switching to the initial channel when VDR is started
Diffstat (limited to 'ci.h')
-rw-r--r--ci.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/ci.h b/ci.h
index e3b85912..190e3e08 100644
--- a/ci.h
+++ b/ci.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: ci.h 3.4 2014/01/14 11:53:52 kls Exp $
+ * $Id: ci.h 3.5 2014/01/16 11:45:08 kls Exp $
*/
#ifndef __CI_H
@@ -113,8 +113,6 @@ public:
cCiAdapter(void);
virtual ~cCiAdapter();
///< The derived class must call Cancel(3) in its destructor.
- virtual bool Ready(void);
- ///< Returns 'true' if all present CAMs in this adapter are ready.
};
class cTPDU;
@@ -267,7 +265,15 @@ public:
///< constructor to true in order to receive the CA pid data.
};
-class cCamSlots : public cList<cCamSlot> {};
+class cCamSlots : public cList<cCamSlot> {
+public:
+ bool WaitForAllCamSlotsReady(int Timeout = 0);
+ ///< Waits until all CAM slots have become ready, or the given Timeout
+ ///< (seconds) has expired. While waiting, the Ready() function of each
+ ///< CAM slot is called in turn, until they all return true.
+ ///< Returns true if all CAM slots have become ready within the given
+ ///< timeout.
+ };
extern cCamSlots CamSlots;