From: Patrik Flykt Date: Fri, 2 Dec 2011 14:18:26 +0000 (+0200) Subject: service: Helper function to check if a service is hidden X-Git-Tag: 0.79~336 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c088c9c95197ae61fa0e2d563438cf4a499c307d;p=platform%2Fupstream%2Fconnman.git service: Helper function to check if a service is hidden --- diff --git a/src/connman.h b/src/connman.h index d7d7d6c5..8787ff57 100644 --- a/src/connman.h +++ b/src/connman.h @@ -509,6 +509,7 @@ int __connman_service_timeserver_remove(struct connman_service *service, const char *timeserver); void __connman_service_set_pac(struct connman_service *service, const char *pac); +connman_bool_t __connman_service_is_hidden(struct connman_service *service); int __connman_service_get_index(struct connman_service *service); void __connman_service_set_domainname(struct connman_service *service, const char *domainname); diff --git a/src/service.c b/src/service.c index a0a29bcc..c151ef03 100644 --- a/src/service.c +++ b/src/service.c @@ -2174,6 +2174,11 @@ void __connman_service_list_struct(DBusMessageIter *iter) g_sequence_foreach(service_list, append_struct, iter); } +connman_bool_t __connman_service_is_hidden(struct connman_service *service) +{ + return service->hidden; +} + int __connman_service_get_index(struct connman_service *service) { if (service == NULL)