remove __init__.py files and create them on the fly
[enigma2.git] / lib / dvb_ci / dvbci_camgr.cpp
index b76514649a8c5f6ae692a4106b85af71a226ef90..e1afd17494b41a8b6348620e6c81246821296979 100644 (file)
@@ -5,12 +5,12 @@
 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)
@@ -32,6 +32,7 @@ int eDVBCICAManagerSession::receivedAPDU(const unsigned char *tag, const void *d
                                caids.push_back((((const unsigned char*)data)[i]<<8)|(((const unsigned char*)data)[i+1]));
                        }
                        printf("\n");
+                       slot->resendCAPMT();
                        break;
                default:
                        printf("unknown APDU tag 9F 80 %02x\n", tag[2]);
@@ -61,9 +62,10 @@ int eDVBCICAManagerSession::doAction()
 
 int eDVBCICAManagerSession::sendCAPMT(unsigned char *data, int len)
 {
-       int i;
        const unsigned char tag[3]={0x9F, 0x80, 0x32}; // ca_pmt
 
   sendAPDU(tag, data, len);
+       
+       return 0;
 }