[PATCH 11/16] WPS: service internal accessor to know wether or not wps is enabled

Tomasz Bursztyka tomasz.bursztyka at nokia.com
Wed Jan 26 00:09:40 PST 2011


---
 src/connman.h |    1 +
 src/service.c |    8 ++++++++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/connman.h b/src/connman.h
index 37946f6..10bc401 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -474,6 +474,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 8c06727..d0590dd 100644
--- a/src/service.c
+++ b/src/service.c
@@ -2951,6 +2951,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
-- 
1.7.2.3




More information about the connman mailing list