diff options
| author | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-11-22 19:39:36 +0000 |
|---|---|---|
| committer | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-11-22 19:39:36 +0000 |
| commit | 67d4b94bb0c054c4e2299122aa1e37192a00230b (patch) | |
| tree | 9e1c936f4cc07c9c02fa1ebab85b812dc23b5f19 /lib/dvb_ci/dvbci.cpp | |
| parent | a95480c7a50e4ecf72cee72693ba6b2c6654f510 (diff) | |
| download | enigma2-67d4b94bb0c054c4e2299122aa1e37192a00230b.tar.gz enigma2-67d4b94bb0c054c4e2299122aa1e37192a00230b.zip | |
add getmmistate
Diffstat (limited to 'lib/dvb_ci/dvbci.cpp')
| -rw-r--r-- | lib/dvb_ci/dvbci.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/dvb_ci/dvbci.cpp b/lib/dvb_ci/dvbci.cpp index cf7acde6..18e66620 100644 --- a/lib/dvb_ci/dvbci.cpp +++ b/lib/dvb_ci/dvbci.cpp @@ -123,6 +123,16 @@ int eDVBCIInterfaces::answerEnq(int slotid, int answer, char *value) return slot->answerEnq(answer, value); } +int eDVBCIInterfaces::getMMIState(int slotid) +{ + eDVBCISlot *slot; + + if( (slot = getSlot(slotid)) == 0 ) + return -1; + + return slot->getMMIState(); +} + int eDVBCISlot::send(const unsigned char *data, size_t len) { int res; @@ -270,6 +280,14 @@ int eDVBCISlot::answerText(int answer) return 0; } +int eDVBCISlot::getMMIState() +{ + if(mmi_session) + return 1; + + return 0; +} + int eDVBCISlot::answerEnq(int answer, char *value) { printf("edvbcislot: answerMMI(%d,%s)\n", answer, value); |
