--- src/connman.h | 1 + src/service.c | 8 ++++++++ 2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/connman.h b/src/connman.h index aa6d790..4a86704 100644 --- a/src/connman.h +++ b/src/connman.h @@ -500,6 +500,7 @@ enum connman_service_security __connman_service_get_security(struct connman_serv connman_bool_t __connman_service_wps_enabled(struct connman_service *service); int __connman_service_set_favorite(struct connman_service *service, connman_bool_t favorite); +connman_bool_t __connman_service_get_immutable(struct connman_service *service); int __connman_service_set_immutable(struct connman_service *service, connman_bool_t immutable); diff --git a/src/service.c b/src/service.c index 9243562..24c6e80 100644 --- a/src/service.c +++ b/src/service.c @@ -3358,6 +3358,14 @@ int __connman_service_set_favorite(struct connman_service *service, return 0; } +connman_bool_t __connman_service_get_immutable(struct connman_service *service) +{ + if (service == NULL) + return FALSE; + + return service->immutable; +} + int __connman_service_set_immutable(struct connman_service *service, connman_bool_t immutable) { -- 1.7.0.4 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman