vdr
2.4.1
|
#include "ci.h"
#include <ctype.h>
#include <linux/dvb/ca.h>
#include <malloc.h>
#include <netinet/in.h>
#include <poll.h>
#include <stdio.h>
#include <string.h>
#include <sys/ioctl.h>
#include <time.h>
#include <unistd.h>
#include "device.h"
#include "mtd.h"
#include "pat.h"
#include "receiver.h"
#include "remux.h"
#include "libsi/si.h"
#include "skins.h"
#include "tools.h"
Go to the source code of this file.
Classes | |
class | cCaPidReceiver |
class | cCaActivationReceiver |
class | cCamResponse |
class | cCamResponses |
class | cTPDU |
class | cCiTransportConnection |
class | cCiResourceManager |
class | cCiCaPmt |
class | cCiConditionalAccessSupport |
class | cCiHostControl |
class | cCiDateTime |
class | cCiMMI |
class | cCiDefaultResourceHandler |
class | cCiCaPidData |
class | cCiCaProgramData |
class | cChannelCamRelation |
Functions | |
static const uint8_t * | GetLength (const uint8_t *Data, int &Length) |
static uint8_t * | SetLength (uint8_t *Data, int Length) |
static char * | CopyString (int Length, const uint8_t *Data) |
static char * | GetString (int &Length, const uint8_t **Data) |
bool | CamResponsesLoad (const char *FileName, bool AllowComments, bool MustExist) |
static int | MtdMapCaDescriptor (uchar *p, cMtdMapper *MtdMapper) |
static int | MtdMapCaDescriptors (uchar *p, cMtdMapper *MtdMapper) |
static int | MtdMapStream (uchar *p, cMtdMapper *MtdMapper) |
static int | MtdMapStreams (uchar *p, cMtdMapper *MtdMapper, int Length) |
Variables | |
static bool | DumpTPDUDataTransfer = false |
static bool | DebugProtocol = false |
static bool | DumpPolls = false |
static bool | DumpDateTime = false |
cCamResponses | CamResponses |
cCiResourceHandlers | CiResourceHandlers |
cCamSlots | CamSlots |
cChannelCamRelations | ChannelCamRelations |
#define CA_ENABLE | ( | x | ) | (((x) & CA_ENABLE_FLAG) ? (x) & ~CA_ENABLE_FLAG : 0) |
#define dbgprotocol | ( | a... | ) | do { if (DebugProtocol) fprintf(stderr, a); } while (0) |
#define DEC2BCD | ( | d | ) | uint8_t(((d / 10) << 4) + (d % 10)) |
#define MAX_DUMP 256 |
#define MAX_TPDU_DATA (MAX_TPDU_SIZE - 4) |
bool CamResponsesLoad | ( | const char * | FileName, |
bool | AllowComments, | ||
bool | MustExist | ||
) |
Definition at line 457 of file ci.c.
References CamResponses, and cConfig< T >::Load().
Referenced by main().
|
static |
Data | Copies the string at Data. Returns a pointer to a newly allocated string. |
Definition at line 77 of file ci.c.
References MALLOC.
Referenced by GetString(), and cCiMMI::Process().
|
static |
Length | Gets the length field from the beginning of Data. Returns a pointer to the first byte after the length and stores the length value in Length. |
Definition at line 42 of file ci.c.
References SIZE_INDICATOR.
Referenced by cCiSession::GetData(), cTPDU::GetData(), and GetString().
|
static |
Data | Gets the string at Data. Returns a pointer to a newly allocated string, or NULL in case of error. Upon return Length and Data represent the remaining data after the string has been skipped. |
Definition at line 96 of file ci.c.
References CopyString(), and GetLength().
Referenced by cCiMMI::GetText(), and cCiApplicationInformation::Process().
|
static |
Definition at line 989 of file ci.c.
References SI::CaDescriptorTag, esyslog, and MtdMapPid().
Referenced by MtdMapCaDescriptors().
|
static |
Definition at line 1006 of file ci.c.
References MtdMapCaDescriptor().
Referenced by cCiCaPmt::MtdMapPids(), and MtdMapStream().
|
static |
Definition at line 1023 of file ci.c.
References MtdMapCaDescriptors(), and MtdMapPid().
Referenced by MtdMapStreams().
|
static |
Definition at line 1033 of file ci.c.
References MtdMapStream().
Referenced by cCiCaPmt::MtdMapPids().
|
static |
Length | Sets the length field at the beginning of Data. Returns a pointer to the first byte after the length. |
Definition at line 57 of file ci.c.
References SIZE_INDICATOR.
Referenced by cTPDU::cTPDU(), and cCiSession::SendData().
cCamResponses CamResponses |
Definition at line 455 of file ci.c.
Referenced by CamResponsesLoad(), and cCiMMI::Process().
cCamSlots CamSlots |
Definition at line 2808 of file ci.c.
Referenced by cDevice::AttachReceiver(), CamControl(), cCamSlot::cCamSlot(), cMenuSetupCAMItem::Changed(), cMenuSetupCAM::cMenuSetupCAM(), cDevice::GetDevice(), main(), cCamSlots::NumReadyMasterSlots(), cCamSlots::WaitForAllCamSlotsReady(), and cCamSlot::~cCamSlot().
cChannelCamRelations ChannelCamRelations |
Definition at line 2917 of file ci.c.
Referenced by cDevice::Action(), cDevice::AttachReceiver(), cDevice::GetDevice(), main(), cCamSlot::Reset(), cDvbSdFfDevice::SetChannelDevice(), and cDvbHdFfDevice::SetChannelDevice().
cCiResourceHandlers CiResourceHandlers |
Definition at line 1752 of file ci.c.
Referenced by main(), cCiTransportConnection::OpenSession(), and cCiResourceManager::Process().
|
static |
Definition at line 34 of file ci.c.
Referenced by cCiDateTime::SendDateTime().
|
static |
Definition at line 33 of file ci.c.
Referenced by cTPDU::Dump(), and cCiTransportConnection::Poll().
|
static |
Definition at line 31 of file ci.c.
Referenced by cTPDU::Dump(), cCiTransportConnection::Poll(), and cCiDateTime::SendDateTime().