From: Ronny Strutz Date: Fri, 18 Nov 2005 01:46:22 +0000 (+0000) Subject: add startmmi / some changes X-Git-Tag: 2.6.0~5089 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/71efef08fb67e1287dc8f295e4ffe3cfc1aa23c1 add startmmi / some changes --- diff --git a/lib/dvb_ci/dvbci.cpp b/lib/dvb_ci/dvbci.cpp index bbea1211..74fa66c7 100644 --- a/lib/dvb_ci/dvbci.cpp +++ b/lib/dvb_ci/dvbci.cpp @@ -55,6 +55,8 @@ eDVBCISlot *eDVBCIInterfaces::getSlot(int slotid) for(eSmartPtrList::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 init_eDVBCIInterfaces(eAutoInitNumbers::dvb, "CI Slots"); diff --git a/lib/dvb_ci/dvbci.h b/lib/dvb_ci/dvbci.h index 43952c2f..7b8a8e25 100644 --- a/lib/dvb_ci/dvbci.h +++ b/lib/dvb_ci/dvbci.h @@ -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 diff --git a/lib/dvb_ci/dvbci_ui.h b/lib/dvb_ci/dvbci_ui.h index 220a4ad2..79f5e03f 100644 --- a/lib/dvb_ci/dvbci_ui.h +++ b/lib/dvb_ci/dvbci_ui.h @@ -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