--- src/connman.h | 1 + src/service.c | 9 +++++++++ 2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/connman.h b/src/connman.h index 550107c..8e4af36 100644 --- a/src/connman.h +++ b/src/connman.h @@ -643,6 +643,7 @@ void __connman_service_set_pac(struct connman_service *service, connman_bool_t __connman_service_is_hidden(struct connman_service *service); connman_bool_t __connman_service_is_split_routing(struct connman_service *service); int __connman_service_get_index(struct connman_service *service); +void __connman_service_set_hidden(struct connman_service *service); void __connman_service_set_domainname(struct connman_service *service, const char *domainname); const char *__connman_service_get_domainname(struct connman_service *service); diff --git a/src/service.c b/src/service.c index 018f12f..fcd64ce 100644 --- a/src/service.c +++ b/src/service.c @@ -117,6 +117,7 @@ struct connman_service { int online_check_count; connman_bool_t do_split_routing; connman_bool_t new_service; + connman_bool_t hidden_service; }; struct find_data { @@ -2232,6 +2233,14 @@ int __connman_service_get_index(struct connman_service *service) return -1; } +void __connman_service_set_hidden(struct connman_service *service) +{ + if (service == NULL || service->hidden == TRUE) + return; + + service->hidden_service = TRUE; +} + void __connman_service_set_domainname(struct connman_service *service, const char *domainname) { -- 1.7.5.4 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman