From: Mohamed Abbas Date: Thu, 3 Feb 2011 23:46:27 +0000 (-0800) Subject: location: Allow to get the service for a location X-Git-Tag: 2.0_alpha~1771 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73d4777d5b8e0c91b2d0d68433bde98c8f445686;p=framework%2Fconnectivity%2Fconnman.git location: Allow to get the service for a location Add new function to return the service for a location. --- diff --git a/include/location.h b/include/location.h index 662d8cd..e4efaaf 100644 --- a/include/location.h +++ b/include/location.h @@ -57,6 +57,9 @@ void connman_location_report_result(struct connman_location *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; diff --git a/src/location.c b/src/location.c index e7bfdc0..820011f 100644 --- a/src/location.c +++ b/src/location.c @@ -94,6 +94,11 @@ char *connman_location_get_interface(struct connman_location *location) 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