git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
941afd2
)
set state on removal and insert
author
Ronny Strutz
<ronny.strutz@multimedia-labs.de>
Thu, 10 Nov 2005 14:42:43 +0000
(14:42 +0000)
committer
Ronny Strutz
<ronny.strutz@multimedia-labs.de>
Thu, 10 Nov 2005 14:42:43 +0000
(14:42 +0000)
lib/dvb_ci/dvbci.cpp
patch
|
blob
|
history
diff --git
a/lib/dvb_ci/dvbci.cpp
b/lib/dvb_ci/dvbci.cpp
index 315d2ae53dcd146ecf9b348c70c1e36d1932415b..72dfd388920929fb0a135566960bc6b06220bb30 100644
(file)
--- a/
lib/dvb_ci/dvbci.cpp
+++ b/
lib/dvb_ci/dvbci.cpp
@@
-7,6
+7,8
@@
#include <lib/dvb_ci/dvbci.h>
#include <lib/dvb_ci/dvbci_session.h>
#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;
eDVBCIInterfaces::eDVBCIInterfaces()
{
int num_ci = 0;
@@
-62,6
+64,8
@@
void eDVBCISlot::data(int what)
state = stateRemoved;
printf("ci removed\n");
notifier->setRequested(eSocketNotifier::Read);
state = stateRemoved;
printf("ci removed\n");
notifier->setRequested(eSocketNotifier::Read);
+ //HACK
+ eDVBCI_UI::getInstance()->setState(0,0);
}
return;
}
}
return;
}
@@
-74,6
+78,10
@@
void eDVBCISlot::data(int what)
if(state != stateInserted) {
state = stateInserted;
eDebug("ci inserted");
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);
}
/* enable PRI to detect removal or errors */
notifier->setRequested(eSocketNotifier::Read|eSocketNotifier::Priority|eSocketNotifier::Write);
}