|
SASC-NG
DVBSoftCAM
|
#include <smartcard.h>
Inheritance diagram for cInfoStr:Public Member Functions | |
| cInfoStr (void) | |
| ~cInfoStr () | |
| bool | Get (char *buff, int len) |
| void | Begin (void) |
| void | Finish () |
Definition at line 48 of file smartcard.h.
| cInfoStr::cInfoStr | ( | void | ) |
Definition at line 1835 of file smartcard.c.
:cLineBuff(256) { current=0; }
| cInfoStr::~cInfoStr | ( | ) |
| void cInfoStr::Begin | ( | void | ) |
Definition at line 1856 of file smartcard.c.
References cLineBuff::Flush().
Referenced by cSmartCardVideoGuard2::Init(), cSmartCardViaccess::Init(), cSmartCardSeca::Init(), cSmartCardNagra::Init(), cSmartCardIrdeto::Init(), cSmartCardCryptoworks::Init(), and cSmartCardConax::Init().
{
Flush();
}
| void cInfoStr::Finish | ( | ) |
Definition at line 1861 of file smartcard.c.
References free, and cLineBuff::Grab().
Referenced by cSmartCardViaccess::Init(), cSmartCardSeca::Init(), cSmartCardNagra::Init(), cSmartCardIrdeto::Init(), cSmartCardCryptoworks::Init(), and cSmartCardConax::Init().
{
cMutexLock lock(&mutex);
free(current);
current=Grab();
}
| bool cInfoStr::Get | ( | char * | buff, |
| int | len | ||
| ) |
Definition at line 1846 of file smartcard.c.
References strn0cpy().
Referenced by cSmartCard::GetCardInfoStr().
{
cMutexLock lock(&mutex);
if(current && current[0]) {
strn0cpy(buff,current,len);
return true;
}
return false;
}