add missing answerEnq method
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sun, 22 Jan 2006 13:58:09 +0000 (13:58 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sun, 22 Jan 2006 13:58:09 +0000 (13:58 +0000)
lib/dvb_ci/dvbci.cpp
lib/dvb_ci/dvbci_mmi.cpp
lib/dvb_ci/dvbci_mmi.h

index 7c2774e..38e73c1 100644 (file)
@@ -480,6 +480,8 @@ int eDVBCISlot::getMMIState()
 int eDVBCISlot::answerEnq(char *value)
 {
        printf("edvbcislot: answerENQ(%s)\n", value);
+
+       
        return 0;
 }
 
index 0efe6b8..99426d0 100644 (file)
@@ -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");
index 06cb8b0..61dbd25 100644 (file)
@@ -17,8 +17,8 @@ public:
        ~eDVBCIMMISession();
        int stopMMI();
        int answerText(int answer);
+       int answerEnq(char *answer);
        int cancelEnq();
-
 };
 
 #endif