18 #ifndef UBUNTU_APPLICATION_SENSORS_C_API_H_
19 #define UBUNTU_APPLICATION_SENSORS_C_API_H_
160 #endif // UBUNTU_APPLICATION_SENSORS_C_API_H_
UBUNTU_DLL_PUBLIC void ubuntu_sensor_disable_sensor(ubuntu_sensor_type sensor_type)
void(* on_new_accelerometer_reading)(ubuntu_sensor_accelerometer_reading *reading, void *context)
UBUNTU_DLL_PUBLIC int32_t ubuntu_sensor_get_sensor_min_delay(ubuntu_sensor_type sensor_type)
UBUNTU_DLL_PUBLIC UStatus ubuntu_sensor_get_sensor_max_value(ubuntu_sensor_type sensor_type, float *value)
void(* on_new_ambient_light_reading)(ubuntu_sensor_ambient_light_reading *reading, void *context)
UbuntuStatus
Indicates the status of an operation.
UBUNTU_DLL_PUBLIC void ubuntu_sensor_initialize_observer(ubuntu_sensor_observer *observer)
UBUNTU_DLL_PUBLIC void ubuntu_sensor_install_observer(ubuntu_sensor_observer *observer)
on_new_ambient_light_reading on_new_ambient_light_reading_cb
UBUNTU_DLL_PUBLIC UStatus ubuntu_sensor_get_sensor_min_value(ubuntu_sensor_type sensor_type, float *value)
#define UBUNTU_DLL_PUBLIC
UBUNTU_DLL_PUBLIC UStatus ubuntu_sensor_get_sensor_resolution(ubuntu_sensor_type sensor_type, float *value)
on_new_proximity_reading on_new_proximity_reading_cb
UBUNTU_DLL_PUBLIC void ubuntu_sensor_enable_sensor(ubuntu_sensor_type sensor_type)
void(* on_new_proximity_reading)(ubuntu_sensor_proximity_reading *reading, void *context)
on_new_accelerometer_reading on_new_accelerometer_reading_cb
UBUNTU_DLL_PUBLIC void ubuntu_sensor_uninstall_observer(ubuntu_sensor_observer *observer)