Ejemplo n.º 1
0
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;
}
Ejemplo n.º 2
0
/* 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;
}
Ejemplo n.º 3
0
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;
}