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;
}
{
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;
return 0;
}
+int eDVBCISlot::startMMI()
+{
+ printf("edvbcislot: startMMI()\n");
+ return 0;
+}
+
eAutoInitP0<eDVBCIInterfaces> init_eDVBCIInterfaces(eAutoInitNumbers::dvb, "CI Slots");
std::string getAppName(int slot);
void setAppName(int slot, const char *name);
void setReset(int slot);
+ int startMMI(int slot);
};
#endif