#include <lib/dvb_ci/dvbci.h>
#include <lib/dvb_ci/dvbci_session.h>
+#include <lib/dvb_ci/dvbci_ui.h>
+
eDVBCIInterfaces::eDVBCIInterfaces()
{
int num_ci = 0;
-
+
eDebug("scanning for common interfaces..");
while (1)
++num_ci;
}
- eDebug("done, found %d common interface slots");
+ eDebug("done, found %d common interface slots", num_ci);
}
eDVBCIInterfaces::~eDVBCIInterfaces()
state = stateRemoved;
printf("ci removed\n");
notifier->setRequested(eSocketNotifier::Read);
+ //HACK
+ eDVBCI_UI::getInstance()->setState(0,0);
}
return;
}
-
__u8 data[4096];
int r;
r = ::read(fd, data, 4096);
if(state != stateInserted) {
state = stateInserted;
eDebug("ci inserted");
+
+ //HACK
+ eDVBCI_UI::getInstance()->setState(0,1);
+
/* enable PRI to detect removal or errors */
notifier->setRequested(eSocketNotifier::Read|eSocketNotifier::Priority|eSocketNotifier::Write);
}
fd = ::open(filename, O_RDWR | O_NONBLOCK);
eDebug("eDVBCISlot has fd %d", fd);
+
+ state = stateInserted;
if (fd >= 0)
{