From d21de5031cac962396ef9e74d60b33496c48c9c6 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Sat, 8 Feb 2014 13:49:50 +0200 Subject: [PATCH] core/service: Add btd_service_set_blocked --- src/service.c | 6 ++++++ src/service.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/service.c b/src/service.c index c6c7a88..ec1ee67 100644 --- a/src/service.c +++ b/src/service.c @@ -56,6 +56,7 @@ struct btd_service { btd_service_state_t state; int err; bool auto_connect; + bool blocked; }; struct service_state_callback { @@ -321,6 +322,11 @@ bool btd_service_get_auto_connect(const struct btd_service *service) return service->auto_connect; } +void btd_service_set_blocked(struct btd_service *service, bool value) +{ + service->blocked = value; +} + unsigned int btd_service_add_state_cb(btd_service_state_cb cb, void *user_data) { struct service_state_callback *state_cb; diff --git a/src/service.h b/src/service.h index 105240b..686e51c 100644 --- a/src/service.h +++ b/src/service.h @@ -62,6 +62,8 @@ uint16_t btd_service_get_version(const struct btd_service *service); void btd_service_set_auto_connect(struct btd_service *service, bool value); bool btd_service_get_auto_connect(const struct btd_service *service); +void btd_service_set_blocked(struct btd_service *service, bool value); + unsigned int btd_service_add_state_cb(btd_service_state_cb cb, void *user_data); bool btd_service_remove_state_cb(unsigned int id); -- 2.7.4