diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-02-08 13:49:50 +0200 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-08-11 12:29:30 +0100 |
commit | b49f68639d2cbdb4f971b0c01facac0709e049aa (patch) | |
tree | a68249163f85e17b8236b89430d70416277d9fb3 | |
parent | e3d8185787a68e1edc02ed23bb9fa1fe91bce4d0 (diff) | |
download | bluez-b49f68639d2cbdb4f971b0c01facac0709e049aa.tar.gz |
core/service: Add btd_service_set_blocked
-rw-r--r-- | src/service.c | 6 | ||||
-rw-r--r-- | src/service.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c index 6016e07fa..f3dbd71a1 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 { @@ -357,6 +358,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 cc4eac19a..2855359ce 100644 --- a/src/service.h +++ b/src/service.h @@ -64,6 +64,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); |