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