static bool bufferSSENSORLoad(const char *fileName, void **ppData) { if (!loadSensorStats(fileName) || !allocComponentList(COMP_SENSOR, numSensorStats)) { return false; } //not interested in this value *ppData = NULL; return true; }
/* Load the Sensor stats */ static bool bufferSSENSORLoad(const char *pBuffer, UDWORD size, void **ppData) { calcDataHash((uint8_t *)pBuffer, size, DATA_SSENSOR); if (!loadSensorStats(pBuffer, size) || !allocComponentList(COMP_SENSOR, numSensorStats)) { return false; } //not interested in this value *ppData = NULL; return true; }
static bool bufferSSENSORLoad(const char *fileName, void **ppData) { WzConfig ini(fileName, WzConfig::ReadOnlyAndRequired); calcDataHash(ini, DATA_SSENSOR); if (!loadSensorStats(ini) || !allocComponentList(COMP_SENSOR, numSensorStats)) { return false; } //not interested in this value *ppData = nullptr; return true; }