|
SASC-NG
DVBSoftCAM
|
Inheritance diagram for cEcmShares:Public Member Functions | |
| int | FindStatus (const cEcmInfo *ecm, int id) |
| void | AddStatus (const cEcmInfo *ecm, int id, int status) |
| void cEcmShares::AddStatus | ( | const cEcmInfo * | ecm, |
| int | id, | ||
| int | status | ||
| ) |
Definition at line 312 of file cccam2.c.
References cSimpleListBase::Add(), cEcmInfo::ecm_pid, L_CC_CCCAM2SH, PRINTF, cEcmInfo::source, and cEcmInfo::transponder.
Referenced by cCardClientCCcam2::ProcessECM().
{
cEcmShare *e=Find(ecm,id);
const char *t="updated";
if(!e) {
Add((e=new cEcmShare(ecm,id)));
t="added";
}
PRINTF(L_CC_CCCAM2SH,"%s shareid %08x for %04x/%x/%x status %d",t,id,ecm->ecm_pid,ecm->source,ecm->transponder,status);
e->status=status;
}
| int cEcmShares::FindStatus | ( | const cEcmInfo * | ecm, |
| int | id | ||
| ) |
Definition at line 302 of file cccam2.c.
References cEcmInfo::ecm_pid, L_CC_CCCAM2SH, PRINTF, cEcmInfo::source, and cEcmInfo::transponder.
Referenced by cShares::GetShares().
{
cEcmShare *e=Find(ecm,id);
if(e) {
PRINTF(L_CC_CCCAM2SH,"shareid %08x for %04x/%x/%x status %d",e->shareid,ecm->ecm_pid,ecm->source,ecm->transponder,e->status);
return e->status;
}
return 0;
}