diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2014-01-16 11:57:54 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2014-01-16 11:57:54 +0100 |
commit | 1df6a87249291566d978f3d104ca68dbb075b37b (patch) | |
tree | 06b09b7d54471b34156392055347fbc48da0b552 /ci.h | |
parent | e02d608bce5e4c4f484f7e9bd81e23637968d10c (diff) | |
download | vdr-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.h | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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; |