X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ed8f9a4e13e4d4eafbc26048d7b70d3aaa8d1399..edddbb8134523b087f6585868b281e88732d3bc7:/lib/dvb_ci/dvbci.cpp diff --git a/lib/dvb_ci/dvbci.cpp b/lib/dvb_ci/dvbci.cpp index bbea1211..6fa8e2ec 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,42 @@ 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::initialize(int slotid) +{ + eDVBCISlot *slot; + + if( (slot = getSlot(slotid)) == 0 ) + return -1; + + return slot->initialize(); +} + +int eDVBCIInterfaces::startMMI(int slotid) +{ + eDVBCISlot *slot; + + if( (slot = getSlot(slotid)) == 0 ) + return -1; + + return slot->startMMI(); +} + +int eDVBCIInterfaces::answerMMI(int slotid, int answer, char *value) +{ + eDVBCISlot *slot; + + if( (slot = getSlot(slotid)) == 0 ) + return -1; + + return slot->answerMMI(answer, value); +} + int eDVBCISlot::send(const unsigned char *data, size_t len) { int res; @@ -179,4 +209,22 @@ int eDVBCISlot::reset() return 0; } +int eDVBCISlot::initialize() +{ + printf("edvbcislot: initialize()\n"); + return 0; +} + +int eDVBCISlot::startMMI() +{ + printf("edvbcislot: startMMI()\n"); + return 0; +} + +int eDVBCISlot::answerMMI(int answer, char *value) +{ + printf("edvbcislot: answerMMI()\n"); + return 0; +} + eAutoInitP0 init_eDVBCIInterfaces(eAutoInitNumbers::dvb, "CI Slots");