lcd: fix inverted mode
[enigma2.git] / lib / dvb_ci / dvbci.cpp
index 6fa8e2ec8c0d17678030471ad6c8f19dcfea7358..4e5b6e688b38a5a03a26c336e560c44c7c499455 100644 (file)
@@ -10,6 +10,8 @@
 #include <lib/dvb_ci/dvbci_session.h>
 
 #include <lib/dvb_ci/dvbci_ui.h>
+#include <lib/dvb_ci/dvbci_appmgr.h>
+#include <lib/dvb_ci/dvbci_mmi.h>
 
 eDVBCIInterfaces *eDVBCIInterfaces::instance = 0;
 
@@ -91,6 +93,16 @@ int eDVBCIInterfaces::startMMI(int slotid)
        return slot->startMMI();
 }
 
+int eDVBCIInterfaces::stopMMI(int slotid)
+{
+       eDVBCISlot *slot;
+
+       if( (slot = getSlot(slotid)) == 0 )
+               return -1;
+       
+       return slot->stopMMI();
+}
+
 int eDVBCIInterfaces::answerMMI(int slotid, int answer, char *value)
 {
        eDVBCISlot *slot;
@@ -171,6 +183,9 @@ eDVBCISlot::eDVBCISlot(eMainloop *context, int nr)
 {
        char filename[128];
 
+       application_manager = 0;
+       mmi_session = 0;
+       
        slotid = nr;
 
        sprintf(filename, "/dev/ci%d", nr);
@@ -218,6 +233,20 @@ int eDVBCISlot::initialize()
 int eDVBCISlot::startMMI()
 {
        printf("edvbcislot: startMMI()\n");
+       
+       if(application_manager)
+               application_manager->startMMI();
+       
+       return 0;
+}
+
+int eDVBCISlot::stopMMI()
+{
+       printf("edvbcislot: stopMMI()\n");
+
+       if(mmi_session)
+               mmi_session->stopMMI();
+       
        return 0;
 }