add startmmi / some changes
authorRonny Strutz <ronny.strutz@multimedia-labs.de>
Fri, 18 Nov 2005 01:46:22 +0000 (01:46 +0000)
committerRonny Strutz <ronny.strutz@multimedia-labs.de>
Fri, 18 Nov 2005 01:46:22 +0000 (01:46 +0000)
lib/dvb_ci/dvbci.cpp
lib/dvb_ci/dvbci.h
lib/dvb_ci/dvbci_ui.h

index bbea121..74fa66c 100644 (file)
@@ -55,6 +55,8 @@ eDVBCISlot *eDVBCIInterfaces::getSlot(int slotid)
        for(eSmartPtrList<eDVBCISlot>::iterator i(m_slots.begin()); i != m_slots.end(); ++i)
                if(i->getSlotID() == slotid)
                        return i;
+
+       printf("FIXME: request for unknown slot\n");
                        
        return 0;
 }
@@ -63,14 +65,22 @@ int eDVBCIInterfaces::reset(int slotid)
 {
        eDVBCISlot *slot;
 
-       if( (slot = getSlot(slotid)) == 0 ) {
-               printf("FIXME: request for unknown slot\n");
-               return 0;
-       }
+       if( (slot = getSlot(slotid)) == 0 )
+               return -1;
        
        return slot->reset();
 }
 
+int eDVBCIInterfaces::startMMI(int slotid)
+{
+       eDVBCISlot *slot;
+
+       if( (slot = getSlot(slotid)) == 0 )
+               return -1;
+       
+       return slot->startMMI();
+}
+
 int eDVBCISlot::send(const unsigned char *data, size_t len)
 {
        int res;
@@ -179,4 +189,10 @@ int eDVBCISlot::reset()
        return 0;
 }
 
+int eDVBCISlot::startMMI()
+{
+       printf("edvbcislot: startMMI()\n");
+       return 0;
+}
+
 eAutoInitP0<eDVBCIInterfaces> init_eDVBCIInterfaces(eAutoInitNumbers::dvb, "CI Slots");
index 43952c2..7b8a8e2 100644 (file)
@@ -29,6 +29,7 @@ public:
        
        int getSlotID();
        int reset();
+       int startMMI();
 };
 
 class eDVBCIInterfaces
@@ -45,6 +46,7 @@ public:
        static eDVBCIInterfaces *getInstance();
        
        int reset(int slot);
+       int startMMI(int slot);
 };
 
 #endif
index 220a4ad..79f5e03 100644 (file)
@@ -22,6 +22,7 @@ public:
        std::string getAppName(int slot);
        void setAppName(int slot, const char *name);
        void setReset(int slot);
+       int startMMI(int slot);
 };
 
 #endif