parse_config_func_t
Parse a sensor-specific attribute from the configuration file
Synopsis:
#include <sensor/external_sensor_api.h>typedef int(* parse_config_func_t)(void *handle,
char *name,
char *value);Arguments:
- handle
- The handle that's returned from calling the function referred to by open_external_sensor_func_t.
- name
- The name of sensor attribute.
- value
- The value of sensor attribute.
Library:
libsensorDescription:
This function is called for each attribute associated with the sensor in the configuration file.
Note:
This function is optional.
Returns:
SENSOR_EOK if the attribute was parsed successfully by the sensor, SENSOR_EOPNOTSUPP if the attribute is not a sensor-specific attribute, otherwise another sensor_error_t value if any errors encountered in the parsing of the attribute.
Page updated:
