X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fdvb_ci%2Fdvbci_mmi.cpp;fp=lib%2Fdvb_ci%2Fdvbci_mmi.cpp;h=7165453cad797fa1ddcdf032db7242b651fdde6f;hp=463c91bd1b90c9b1e311d2608497619be00d342a;hb=bf057ab3c120bf104f66dbaecd53edffffb0fb38;hpb=edddbb8134523b087f6585868b281e88732d3bc7 diff --git a/lib/dvb_ci/dvbci_mmi.cpp b/lib/dvb_ci/dvbci_mmi.cpp index 463c91b..7165453 100644 --- a/lib/dvb_ci/dvbci_mmi.cpp +++ b/lib/dvb_ci/dvbci_mmi.cpp @@ -2,6 +2,17 @@ #include +eDVBCIMMISession::eDVBCIMMISession(eDVBCISlot *tslot) +{ + slot = tslot; + slot->mmi_session = this; +} + +eDVBCIMMISession::~eDVBCIMMISession() +{ + slot->mmi_session = 0; +} + int eDVBCIMMISession::receivedAPDU(const unsigned char *tag, const void *data, int len) { printf("SESSION(%d)/MMI %02x %02x %02x: ", session_nb, tag[0], tag[1],tag[2]); @@ -90,3 +101,12 @@ int eDVBCIMMISession::doAction() return 0; } +int eDVBCIMMISession::stopMMI() +{ + printf("eDVBCIMMISession::stopMMI()\n"); + + unsigned char tag[]={0x9f, 0x88, 0x00}; + unsigned char data[]={0x00}; + sendAPDU(tag, data, 1); +} +