git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't use internals of other classes
[enigma2.git]
/
lib
/
dvb_ci
/
dvbci_resmgr.cpp
diff --git
a/lib/dvb_ci/dvbci_resmgr.cpp
b/lib/dvb_ci/dvbci_resmgr.cpp
index df0fb8d034f9785231f305ed1abe0866b3da56db..7f716d611406569390c3483edc33f0a7c7de36a5 100644
(file)
--- a/
lib/dvb_ci/dvbci_resmgr.cpp
+++ b/
lib/dvb_ci/dvbci_resmgr.cpp
@@
-24,6
+24,7
@@
int eDVBCIResourceManagerSession::receivedAPDU(const unsigned char *tag,const vo
else
for (int i=0; i<len; i++)
printf("%02x ", ((const unsigned char*)data)[i]);
else
for (int i=0; i<len; i++)
printf("%02x ", ((const unsigned char*)data)[i]);
+
if (state == stateFirstProfileEnquiry)
{
// profile change
if (state == stateFirstProfileEnquiry)
{
// profile change
@@
-35,6
+36,7
@@
int eDVBCIResourceManagerSession::receivedAPDU(const unsigned char *tag,const vo
printf("unknown APDU tag 9F 80 %02x\n", tag[2]);
}
}
printf("unknown APDU tag 9F 80 %02x\n", tag[2]);
}
}
+
return 0;
}
return 0;
}
@@
-46,7
+48,7
@@
int eDVBCIResourceManagerSession::doAction()
{
const unsigned char tag[3]={0x9F, 0x80, 0x10}; // profile enquiry
sendAPDU(tag);
{
const unsigned char tag[3]={0x9F, 0x80, 0x10}; // profile enquiry
sendAPDU(tag);
- state
=
stateFirstProfileEnquiry;
+ state
=
stateFirstProfileEnquiry;
return 0;
}
case stateFirstProfileEnquiry:
return 0;
}
case stateFirstProfileEnquiry:
@@
-56,6
+58,11
@@
int eDVBCIResourceManagerSession::doAction()
state=stateProfileChange;
return 0;
}
state=stateProfileChange;
return 0;
}
+ case stateProfileChange:
+ {
+ printf("bla kaputt\n");
+ break;
+ }
case stateProfileEnquiry:
{
const unsigned char tag[3]={0x9F, 0x80, 0x11};
case stateProfileEnquiry:
{
const unsigned char tag[3]={0x9F, 0x80, 0x11};