|
SASC
DVBSoftCAM
|
Inheritance diagram for cSmartCardDatas:Public Member Functions | |
| cSmartCardDatas (void) | |
| cSmartCardData * | Find (cSmartCardData *param) |
| cSmartCardDatas (void) | |
| cSmartCardData * | Find (cSmartCardData *param) |
Protected Member Functions | |
| virtual cStructItem * | ParseLine (char *line) |
| virtual cStructItem * | ParseLine (char *line) |
Definition at line 1877 of file smartcard.c.
| cSmartCardDatas::cSmartCardDatas | ( | void | ) |
Definition at line 1887 of file smartcard.c.
:cStructList<cSmartCardData>("smartcard data","smartcard.conf",SL_MISSINGOK|SL_WATCH|SL_VERBOSE) {}
| cSmartCardDatas::cSmartCardDatas | ( | void | ) |
| cSmartCardData * cSmartCardDatas::Find | ( | cSmartCardData * | param | ) |
Definition at line 1891 of file smartcard.c.
References cStructList< cSmartCardData >::First(), cSmartCardData::Ident(), cStructLoader::ListLock(), cStructLoader::ListUnlock(), cSmartCardData::Matches(), and cStructList< cSmartCardData >::Next().
Referenced by cSmartCards::FindCardData().
{
ListLock(false);
cSmartCardData *cd;
for(cd=First(); cd; cd=Next(cd))
if(cd->Ident()==param->Ident() && cd->Matches(param)) break;
ListUnlock();
return cd;
}
| cSmartCardData* cSmartCardDatas::Find | ( | cSmartCardData * | param | ) |
| virtual cStructItem* cSmartCardDatas::ParseLine | ( | char * | line | ) | [protected, virtual] |
Implements cStructLoader.
| cStructItem * cSmartCardDatas::ParseLine | ( | char * | line | ) | [protected, virtual] |
Implements cStructLoader.
Definition at line 1901 of file smartcard.c.
References cSmartCards::First(), cSmartCards::Next(), cSmartCardData::Parse(), and smartcards.
{
char *r=index(line,':');
if(r)
for(cSmartCardLink *scl=smartcards.First(); scl; scl=smartcards.Next(scl))
if(!strncasecmp(scl->Name(),line,r-line)) {
cSmartCardData *scd=scl->CreateData();
if(scd && scd->Parse(r+1)) return scd;
delete scd;
break;
}
return 0;
}