service: Helper function to check if a service is hidden
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 2 Dec 2011 14:18:26 +0000 (16:18 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 12 Dec 2011 09:44:40 +0000 (10:44 +0100)
src/connman.h
src/service.c

index d7d7d6c..8787ff5 100644 (file)
@@ -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);
index a0a29bc..c151ef0 100644 (file)
@@ -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)