mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
rename tSlot -> eDVBCISlot
This commit is contained in:
@@ -12,16 +12,16 @@
|
||||
class eDVBCISession
|
||||
{
|
||||
static eDVBCISession* sessions[SLMS];
|
||||
static eDVBCISession* createSession(tSlot *slot, const unsigned char *resource_identifier, unsigned char &status);
|
||||
static void sendSPDU(tSlot *slot, unsigned char tag,const void *data, int len, unsigned short session_nb, const void *apdu = 0, int alen = 0);
|
||||
static void sendOpenSessionResponse(tSlot *slot,unsigned char session_status, const unsigned char *resource_identifier, unsigned short session_nb);
|
||||
static eDVBCISession* createSession(eDVBCISlot *slot, const unsigned char *resource_identifier, unsigned char &status);
|
||||
static void sendSPDU(eDVBCISlot *slot, unsigned char tag,const void *data, int len, unsigned short session_nb, const void *apdu = 0, int alen = 0);
|
||||
static void sendOpenSessionResponse(eDVBCISlot *slot,unsigned char session_status, const unsigned char *resource_identifier, unsigned short session_nb);
|
||||
void recvCreateSessionResponse(const unsigned char *data);
|
||||
void recvCloseSessionRequest(const unsigned char *data);
|
||||
protected:
|
||||
int state;
|
||||
int status;
|
||||
int action;
|
||||
tSlot *slot;
|
||||
eDVBCISlot *slot;
|
||||
unsigned short session_nb;
|
||||
virtual int receivedAPDU(const unsigned char *tag, const void *data, int len) = 0;
|
||||
void sendAPDU(const unsigned char *tag, const void *data=0,int len=0);
|
||||
@@ -30,7 +30,7 @@ protected:
|
||||
public:
|
||||
virtual ~eDVBCISession();
|
||||
|
||||
static void deleteSessions(const tSlot *slot);
|
||||
static void deleteSessions(const eDVBCISlot *slot);
|
||||
void sendSPDU(unsigned char tag, const void *data, int len, const void *apdu = 0, int alen = 0);
|
||||
|
||||
int poll() { if (action) { action=doAction(); return 1; } return 0; }
|
||||
@@ -39,7 +39,7 @@ public:
|
||||
static int parseLengthField(const unsigned char *pkt, int &len);
|
||||
static int buildLengthField(unsigned char *pkt, int len);
|
||||
|
||||
static void receiveData(tSlot *slot, const unsigned char *ptr, size_t len);
|
||||
static void receiveData(eDVBCISlot *slot, const unsigned char *ptr, size_t len);
|
||||
|
||||
int getState() { return state; }
|
||||
int getStatus() { return status; }
|
||||
|
Reference in New Issue
Block a user