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

Samuel Ortiz sameo at linux.intel.com
Fri Jan 21 16:12:33 PST 2011


Hi Tomasz,

On Tue, Jan 11, 2011 at 03:54:04PM +0200, Tomasz Bursztyka wrote:
> ---
>  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 b58f903..a084748 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_is_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 966588b..38ef855 100644
> --- a/src/service.c
> +++ b/src/service.c
> @@ -2934,6 +2934,14 @@ enum connman_service_security __connman_service_get_security(struct connman_serv
>  	return service->security;
>  }
>  
> +connman_bool_t __connman_service_is_wps_enabled(struct connman_service *service)
>
I wouldn't mind seeing this one merged with patch #7, and also please call it
__connman_service_wps_enabled().

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/



More information about the connman mailing list