[PATCH 1/3 v3] allow to get the service for a location.

Mohamed Abbas mabbas at linux.intel.com
Fri Jan 28 10:50:44 PST 2011


Add new function to return the service for a location.
---
 include/location.h |    3 +++
 src/location.c     |    5 +++++
 2 files changed, 8 insertions(+), 0 deletions(-)

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
-- 
1.7.3.4




More information about the connman mailing list