From: Andreas Monzner Date: Sun, 22 Jan 2006 13:58:09 +0000 (+0000) Subject: add missing answerEnq method X-Git-Tag: 2.6.0~4317 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/826b293fb1c6a4b75463aa8ac143d9dea99e12b0 add missing answerEnq method --- diff --git a/lib/dvb_ci/dvbci.cpp b/lib/dvb_ci/dvbci.cpp index 7c2774e9..38e73c1a 100644 --- a/lib/dvb_ci/dvbci.cpp +++ b/lib/dvb_ci/dvbci.cpp @@ -480,6 +480,8 @@ int eDVBCISlot::getMMIState() int eDVBCISlot::answerEnq(char *value) { printf("edvbcislot: answerENQ(%s)\n", value); + + return 0; } diff --git a/lib/dvb_ci/dvbci_mmi.cpp b/lib/dvb_ci/dvbci_mmi.cpp index 0efe6b82..99426d04 100644 --- a/lib/dvb_ci/dvbci_mmi.cpp +++ b/lib/dvb_ci/dvbci_mmi.cpp @@ -184,6 +184,17 @@ int eDVBCIMMISession::answerText(int answer) return 0; } +int eDVBCIMMISession::answerEnq(char *answer) +{ + unsigned int len = strlen(answer); + printf("eDVBCIMMISession::answerEnq(%d bytes)\n", len); + + unsigned char tag[]={0x9f, 0x88, 0x08}; + sendAPDU(tag, (unsigned char*)answer, len); + + return 0; +} + int eDVBCIMMISession::cancelEnq() { printf("eDVBCIMMISession::cancelEnq()\n"); diff --git a/lib/dvb_ci/dvbci_mmi.h b/lib/dvb_ci/dvbci_mmi.h index 06cb8b08..61dbd258 100644 --- a/lib/dvb_ci/dvbci_mmi.h +++ b/lib/dvb_ci/dvbci_mmi.h @@ -17,8 +17,8 @@ public: ~eDVBCIMMISession(); int stopMMI(); int answerText(int answer); + int answerEnq(char *answer); int cancelEnq(); - }; #endif