mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added some comments
This commit is contained in:
parent
e3dd163461
commit
2a379aaf7f
29
ci.h
29
ci.h
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: ci.h 1.19 2005/11/26 13:37:42 kls Exp $
|
* $Id: ci.h 1.20 2005/12/03 11:59:05 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __CI_H
|
#ifndef __CI_H
|
||||||
@ -112,6 +112,7 @@ private:
|
|||||||
cList<cCiCaProgramData> caProgramList;
|
cList<cCiCaProgramData> caProgramList;
|
||||||
int ResourceIdToInt(const uint8_t *Data);
|
int ResourceIdToInt(const uint8_t *Data);
|
||||||
bool Send(uint8_t Tag, int SessionId, int ResourceId = 0, int Status = -1);
|
bool Send(uint8_t Tag, int SessionId, int ResourceId = 0, int Status = -1);
|
||||||
|
const unsigned short *GetCaSystemIds(int Slot);
|
||||||
cCiSession *GetSessionBySessionId(int SessionId);
|
cCiSession *GetSessionBySessionId(int SessionId);
|
||||||
cCiSession *GetSessionByResourceId(int ResourceId, int Slot);
|
cCiSession *GetSessionByResourceId(int ResourceId, int Slot);
|
||||||
cCiSession *CreateSession(int ResourceId);
|
cCiSession *CreateSession(int ResourceId);
|
||||||
@ -123,18 +124,33 @@ private:
|
|||||||
public:
|
public:
|
||||||
~cCiHandler();
|
~cCiHandler();
|
||||||
static cCiHandler *CreateCiHandler(const char *FileName);
|
static cCiHandler *CreateCiHandler(const char *FileName);
|
||||||
|
///< Creates a new cCiHandler for the given CA device.
|
||||||
int NumSlots(void) { return numSlots; }
|
int NumSlots(void) { return numSlots; }
|
||||||
|
///< Returns the number of CAM slots provided by this CA device.
|
||||||
bool Ready(void);
|
bool Ready(void);
|
||||||
|
///< Returns true if all CAMs in this CA device are ready.
|
||||||
bool Process(int Slot = -1);
|
bool Process(int Slot = -1);
|
||||||
///< Processes the given Slot. If Slot is -1, all slots are processed.
|
///< Processes the given Slot. If Slot is -1, all slots are processed.
|
||||||
///< Returns false in case of an error.
|
///< Returns false in case of an error.
|
||||||
bool HasUserIO(void) { return hasUserIO; }
|
bool HasUserIO(void) { return hasUserIO; }
|
||||||
|
///< Returns true if there is a pending user interaction, which shall
|
||||||
|
///< be retrieved via GetMenu() or GetEnquiry().
|
||||||
bool EnterMenu(int Slot);
|
bool EnterMenu(int Slot);
|
||||||
|
///< Requests the CAM in the given Slot to start its menu.
|
||||||
cCiMenu *GetMenu(void);
|
cCiMenu *GetMenu(void);
|
||||||
|
///< Gets a pending menu, or NULL if there is no menu.
|
||||||
cCiEnquiry *GetEnquiry(void);
|
cCiEnquiry *GetEnquiry(void);
|
||||||
|
///< Gets a pending enquiry, or NULL if there is no enquiry.
|
||||||
const char *GetCamName(int Slot);
|
const char *GetCamName(int Slot);
|
||||||
const unsigned short *GetCaSystemIds(int Slot);
|
///< Returns the name of the CAM in the given Slot, or NULL if there
|
||||||
|
///< is no CAM in that slot.
|
||||||
bool ProvidesCa(const unsigned short *CaSystemIds); //XXX Slot???
|
bool ProvidesCa(const unsigned short *CaSystemIds); //XXX Slot???
|
||||||
|
///< Returns true if any of the CAMs can provide one of the given
|
||||||
|
///< CaSystemIds. This doesn't necessarily mean that it will be
|
||||||
|
///< possible to actually decrypt such a programme, since CAMs
|
||||||
|
///< usually advertise several CA system ids, while the actual
|
||||||
|
///< decryption is controlled by the smart card inserted into
|
||||||
|
///< the CAM.
|
||||||
void SetSource(int Source, int Transponder);
|
void SetSource(int Source, int Transponder);
|
||||||
///< Sets the Source and Transponder of the device this cCiHandler is
|
///< Sets the Source and Transponder of the device this cCiHandler is
|
||||||
///< currently tuned to. If Source or Transponder are different than
|
///< currently tuned to. If Source or Transponder are different than
|
||||||
@ -145,11 +161,14 @@ public:
|
|||||||
///< to SetPid() will (de)activate one of these entries.
|
///< to SetPid() will (de)activate one of these entries.
|
||||||
void SetPid(int Pid, bool Active);
|
void SetPid(int Pid, bool Active);
|
||||||
///< Sets the given Pid (which has previously been added through a
|
///< Sets the given Pid (which has previously been added through a
|
||||||
///< call to AddPid()) to Active. If Active is true, a later call to
|
///< call to AddPid()) to Active. A later call to StartDecrypting() will
|
||||||
///< StartDecrypting() will send the full list of currently active CA_PMT
|
///< send the full list of currently active CA_PMT entries to the CAM.
|
||||||
///< entries to the CAM, including this one.
|
|
||||||
bool CanDecrypt(int ProgramNumber);
|
bool CanDecrypt(int ProgramNumber);
|
||||||
///< XXX
|
///< XXX
|
||||||
|
///< Returns true if there is a CAM in this CA device that is able
|
||||||
|
///< to decrypt the programme with the given ProgramNumber. The PIDs
|
||||||
|
///< for this ProgramNumber must have been set through previous calls
|
||||||
|
///< to SetPid().
|
||||||
void StartDecrypting(void);
|
void StartDecrypting(void);
|
||||||
///< Triggers sending all currently active CA_PMT entries to the CAM,
|
///< Triggers sending all currently active CA_PMT entries to the CAM,
|
||||||
///< so that it will start decrypting.
|
///< so that it will start decrypting.
|
||||||
|
Loading…
Reference in New Issue
Block a user