summaryrefslogtreecommitdiff
path: root/ci.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-05-01 09:32:32 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-05-01 09:32:32 +0200
commit073268bd45a4a36e0d20ba1a60d585e9cae13e30 (patch)
tree65f8eba2ba526aeac251d1d1756abfac18cfee3d /ci.h
parent7cfce2fffa067a702af4e3b18e52e7d631dc006c (diff)
downloadvdr-073268bd45a4a36e0d20ba1a60d585e9cae13e30.tar.gz
vdr-073268bd45a4a36e0d20ba1a60d585e9cae13e30.tar.bz2
CAMs are now sent a generated EIT packet that contains a single 'present event' for the current SID, in order to avoid any parental rating dialogs
Diffstat (limited to 'ci.h')
-rw-r--r--ci.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/ci.h b/ci.h
index 8d1323ac..342cfb96 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 4.6 2017/04/10 09:17:56 kls Exp $
+ * $Id: ci.h 4.7 2017/05/01 09:21:22 kls Exp $
*/
#ifndef __CI_H
@@ -377,6 +377,17 @@ public:
///< A derived class that implements this function will also need
///< to set the WantsTsData parameter in the call to the base class
///< constructor to true in order to receive the TS data.
+ virtual bool Inject(uchar *Data, int Count);
+ ///< Sends all Count bytes of the given Data to the CAM, and returns true
+ ///< if this was possible. If the data can't be sent to the CAM completely,
+ ///< nothing shall be sent and the return value shall be false.
+ ///< No decrypted packet is returned by this function.
+ virtual void InjectEit(int Sid);
+ ///< Injects a generated EIT with a "present event" for the given Sid into
+ ///< the TS data stream sent to the CAM. This only applies to CAM slots that
+ ///< have WantsTsData set to true in their constructor.
+ ///< The default implementation sends an EIT with the minimum event
+ ///< necessary to disable the CAMs parental rating prompt.
};
class cCamSlots : public cList<cCamSlot> {