From: Jukka Rissanen Date: Fri, 4 May 2012 12:24:33 +0000 (+0300) Subject: service: Add flag that tells if the service is hidden or not X-Git-Tag: 2.0_alpha~258 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4fbe270db40235902dbcda43b2d856a26fc6087;p=framework%2Fconnectivity%2Fconnman.git service: Add flag that tells if the service is hidden or not --- diff --git a/src/connman.h b/src/connman.h index 90d1e1f..734213d 100644 --- a/src/connman.h +++ b/src/connman.h @@ -645,6 +645,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 75c392e..f8cdff8 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) {