From a06fbf7750e6c59f3e881d6fd1137f7c4dd1cb73 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Wed, 26 Jan 2011 10:09:40 +0200 Subject: [PATCH] service: WPS enabled getter --- src/connman.h | 1 + src/service.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/connman.h b/src/connman.h index 18c0140..5bcda43 100644 --- a/src/connman.h +++ b/src/connman.h @@ -476,6 +476,7 @@ const char *__connman_service_get_path(struct connman_service *service); unsigned int __connman_service_get_order(struct connman_service *service); struct connman_network *__connman_service_get_network(struct connman_service *service); enum connman_service_security __connman_service_get_security(struct connman_service *service); +connman_bool_t __connman_service_wps_enabled(struct connman_service *service); int __connman_service_set_favorite(struct connman_service *service, connman_bool_t favorite); int __connman_service_set_immutable(struct connman_service *service, diff --git a/src/service.c b/src/service.c index 9fca184..fa10bc2 100644 --- a/src/service.c +++ b/src/service.c @@ -2954,6 +2954,14 @@ enum connman_service_security __connman_service_get_security(struct connman_serv return service->security; } +connman_bool_t __connman_service_wps_enabled(struct connman_service *service) +{ + if (service == NULL) + return FALSE; + + return service->wps; +} + /** * __connman_service_set_favorite: * @service: service structure -- 2.7.4