/* Load the ECM stats */ static bool bufferSECMLoad(const char *fileName, void **ppData) { if (!loadECMStats(fileName) || !allocComponentList(COMP_ECM, numECMStats)) { return false; } //not interested in this value *ppData = NULL; return true; }
/* Load the ECM stats */ static bool bufferSECMLoad(const char *pBuffer, UDWORD size, void **ppData) { calcDataHash((uint8_t *)pBuffer, size, DATA_SECM); if (!loadECMStats(pBuffer, size) || !allocComponentList(COMP_ECM, numECMStats)) { return false; } //not interested in this value *ppData = NULL; return true; }
/* Load the ECM stats */ static bool bufferSECMLoad(const char *fileName, void **ppData) { WzConfig ini(fileName, WzConfig::ReadOnlyAndRequired); calcDataHash(ini, DATA_SECM); if (!loadECMStats(ini) || !allocComponentList(COMP_ECM, numECMStats)) { return false; } //not interested in this value *ppData = nullptr; return true; }