|
SASC-NG
DVBSoftCAM
|
Static Public Member Functions | |
| static bool | Load (const char *cfgdir) |
| static void | Shutdown (void) |
| bool cSoftCAM::Load | ( | const char * | cfgdir | ) | [static] |
Definition at line 536 of file sc.c.
References cSimpleListBase::Count(), cSmartCards::Disable(), cStructLoader::Disable(), Feature, cSystems::Init(), cFeature::KeyFile(), keys, L_GEN_ERROR, PRINTF, cFeature::SmartCard(), and smartcards.
Referenced by cMenuSetupSc::ProcessKey(), cScPlugin::Start(), and cScPlugin::SVDRPCommand().
{
if(!Feature.KeyFile()) keys.Disable();
if(!Feature.SmartCard()) smartcards.Disable();
cStructLoaders::Load(false);
if(Feature.KeyFile() && keys.Count()<1)
PRINTF(L_GEN_ERROR,"no keys loaded for softcam!");
if(!cSystems::Init(cfgdir)) return false;
srand(time(0));
return true;
}
| void cSoftCAM::Shutdown | ( | void | ) | [static] |
Definition at line 548 of file sc.c.
References cSystems::Clean(), keys, cStructLoader::SafeClear(), cStructLoaders::Save(), cSmartCards::Shutdown(), and smartcards.
Referenced by cScPlugin::Stop().
{
cStructLoaders::Save(true);
cSystems::Clean();
smartcards.Shutdown();
keys.SafeClear();
}