eDVBCICAManagerSession::eDVBCICAManagerSession(eDVBCISlot *tslot)
{
slot = tslot;
- slot->ca_manager = this;
+ slot->setCAManager(this);
}
eDVBCICAManagerSession::~eDVBCICAManagerSession()
{
- slot->ca_manager = 0;
+ slot->setCAManager(NULL);
}
int eDVBCICAManagerSession::receivedAPDU(const unsigned char *tag, const void *data, int len)
printf("%04x ", (((const unsigned char*)data)[i]<<8)|(((const unsigned char*)data)[i+1]));
caids.push_back((((const unsigned char*)data)[i]<<8)|(((const unsigned char*)data)[i+1]));
}
+ std::sort(caids.begin(), caids.end());
printf("\n");
+ eDVBCIInterfaces::getInstance()->recheckPMTHandlers();
break;
default:
printf("unknown APDU tag 9F 80 %02x\n", tag[2]);
{
const unsigned char tag[3]={0x9F, 0x80, 0x32}; // ca_pmt
- sendAPDU(tag, data, len);
-
+ sendAPDU(tag, data, len);
+
return 0;
}