19 #ifndef UBUNTU_APPLICATION_LOCATION_SERVICE_CONTROLLER_H_
20 #define UBUNTU_APPLICATION_LOCATION_SERVICE_CONTROLLER_H_
51 UALocationServiceStatusFlags flags,
100 UALocationServiceStatusFlags *out_flags);
143 #endif // UBUNTU_APPLICATION_LOCATION_SERVICE_CONTROLLER_H_
UbuntuStatus
Indicates the status of an operation.
unsigned int UALocationServiceStatusFlags
UbuntuApplicationLocationServiceStatus UALocationServiceStatus
UBUNTU_DLL_PUBLIC UStatus ua_location_service_controller_disable_service(UALocationServiceController *controller)
Disables the location service completely.
UBUNTU_DLL_PUBLIC void ua_location_service_controller_set_status_changed_handler(UALocationServiceController *controller, UALocationServiceStatusChangedHandler handler, void *context)
Sets the status changed handler of the controller instance.
UBUNTU_DLL_PUBLIC UStatus ua_location_service_controller_query_status(UALocationServiceController *controller, UALocationServiceStatusFlags *out_flags)
Query the status of the location service.
UBUNTU_DLL_PUBLIC UStatus ua_location_service_controller_enable_gps(UALocationServiceController *controller)
Enables all gps providers known to the location service.
UBUNTU_DLL_PUBLIC UStatus ua_location_service_controller_enable_service(UALocationServiceController *controller)
Enables the location service.
void(* UALocationServiceStatusChangedHandler)(UALocationServiceStatusFlags flags, void *context)
Callback type that is invoked when the location service status changes.
UBUNTU_DLL_PUBLIC void ua_location_service_controller_ref(UALocationServiceController *controller)
Increments the reference count of the controller instance.
#define UBUNTU_DLL_PUBLIC
UBUNTU_DLL_PUBLIC UStatus ua_location_service_controller_disable_gps(UALocationServiceController *controller)
Disables all gps providers known to the location service.
struct UbuntuApplicationLocationServiceController UALocationServiceController
Opaque type encapsulating a controller the location service.
UBUNTU_DLL_PUBLIC void ua_location_service_controller_unref(UALocationServiceController *controller)
Decrements the reference count of the controller instance.
UbuntuApplicationLocationServiceStatus
Location service status.