add mmi
[enigma2.git] / lib / dvb_ci / dvbci_session.cpp
index b0bef25..72495a9 100644 (file)
@@ -2,6 +2,10 @@
 
 #include <lib/dvb_ci/dvbci_session.h>
 #include <lib/dvb_ci/dvbci_resmgr.h>
+#include <lib/dvb_ci/dvbci_appmgr.h>
+#include <lib/dvb_ci/dvbci_camgr.h>
+#include <lib/dvb_ci/dvbci_datetimemgr.h>
+#include <lib/dvb_ci/dvbci_mmi.h>
 
 int eDVBCISession::buildLengthField(unsigned char *pkt, int len)
 {
@@ -54,6 +58,11 @@ void eDVBCISession::sendAPDU(const unsigned char *tag, const void *data, int len
        sendSPDU(0x90, 0, 0, pkt, len+3+l);
 }
 
+void eDVBCISession::sendSPDU(unsigned char tag, const void *data, int len, const void *apdu, int alen)
+{
+       sendSPDU(slot, tag, data, len, session_nb, apdu, alen);
+}
+
 void eDVBCISession::sendSPDU(eDVBCISlot *slot, unsigned char tag, const void *data, int len, unsigned short session_nb, const void *apdu,int alen)
 {
        unsigned char pkt[4096];
@@ -123,19 +132,19 @@ eDVBCISession *eDVBCISession::createSession(eDVBCISlot *slot, const unsigned cha
                printf("RESOURCE MANAGER\n");
                break;
        case 0x00020041:
-//             session=eDVBCIModule::getInstance()->application_manager = new eDVBCIApplicationManagerSession;
+               session=slot->application_manager = new eDVBCIApplicationManagerSession;
                printf("APPLICATION MANAGER\n");
                break;
        case 0x00030041:
-//             session=eDVBCIModule::getInstance()->ca_manager=new eDVBCICAManagerSession;
+               session=slot->ca_manager=new eDVBCICAManagerSession;
                printf("CA MANAGER\n");
                break;
        case 0x00240041:
-//             session=new eDVBCIDateTimeSession;
+               session=new eDVBCIDateTimeSession;
                printf("DATE-TIME\n");
                break;
        case 0x00400041:
-//             session=new eDVBCIMMISession;
+               session=new eDVBCIMMISession;
                printf("MMI\n");
                break;
        case 0x00100041: