Add new function to return the service for a location.
void *connman_location_get_data(struct connman_location *location);
void connman_location_set_data(struct connman_location *location, void *data);
+struct connman_service *connman_location_get_service(
+ struct connman_location *location);
+
struct connman_location_driver {
const char *name;
enum connman_service_type type;
return connman_service_get_interface(location->service);
}
+struct connman_service *connman_location_get_service(
+ struct connman_location *location)
+{
+ return location->service;
+}
/**
* connman_location_get_data:
* @location: Location structure