From: Daniel Wagner <[email protected]>

Currently, the service object only knows if the network is roaming or
not roaming. We export this boolean for the session API, but it's too
simple in the long term. There is need to distignish between
"national", "international" roaming.
---
 src/connman.h |    1 +
 src/service.c |    5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/connman.h b/src/connman.h
index e564068..89e0923 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -567,6 +567,7 @@ GSequence *__connman_service_get_list(struct 
connman_session *session,
 
 connman_bool_t __connman_service_is_connecting(struct connman_service 
*service);
 connman_bool_t __connman_service_is_connected(struct connman_service *service);
+connman_bool_t __connman_service_is_roaming(struct connman_service *service);
 const char *__connman_service_get_name(struct connman_service *service);
 
 #include <connman/location.h>
diff --git a/src/service.c b/src/service.c
index acc32f8..86088e1 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1592,6 +1592,11 @@ connman_bool_t __connman_service_is_connected(struct 
connman_service *service)
        return is_connected(service);
 }
 
+connman_bool_t __connman_service_is_roaming(struct connman_service *service)
+{
+       return service->roaming;
+}
+
 const char *__connman_service_get_name(struct connman_service *service)
 {
        return service->name;
-- 
1.7.4

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to