return true;
}
-API int sensord_get_sensor_list_ex(sensor_type_t type, sensor_t **list, int *sensor_count)
+API int sensord_get_sensors(sensor_type_t type, sensor_t **list, int *sensor_count)
{
retvm_if (!get_sensor_list(), -EPERM, "Fail to get sensor list from server");
return OP_SUCCESS;
}
-API int sensord_get_sensor_ex(sensor_type_t type, sensor_t *sensor)
+API int sensord_get_default_sensor(sensor_type_t type, sensor_t *sensor)
{
retvm_if (!get_sensor_list(), -EPERM, "Fail to get sensor list from server");
API bool sensord_get_sensor_list(sensor_type_t type, sensor_t **list, int *sensor_count)
{
- return (sensord_get_sensor_list_ex(type, list, sensor_count) == OP_SUCCESS);
+ return (sensord_get_sensors(type, list, sensor_count) == OP_SUCCESS);
}
API sensor_t sensord_get_sensor(sensor_type_t type)
{
sensor_t sensor;
- sensord_get_sensor_ex(type, &sensor);
+ sensord_get_default_sensor(type, &sensor);
return sensor;
}
* @retval -EACCES Permission denied
* @retval -ENODATA NO sensor available
*/
-int sensord_get_sensor_list_ex(sensor_type_t type, sensor_t **list, int *sensor_count);
+int sensord_get_sensors(sensor_type_t type, sensor_t **list, int *sensor_count);
/**
* @brief Get the default sensor for a given type.
* @retval -EPERM Operation not permitted
* @retval -EACCES Permission denied
*/
-int sensord_get_sensor_ex(sensor_type_t type, sensor_t *sensor);
+int sensord_get_default_sensor(sensor_type_t type, sensor_t *sensor);
/**
* @brief Get the type of this sensor.