diff options
author | Yun-Hao Chung <howardchung@chromium.org> | 2021-08-03 19:43:05 +0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-08-04 15:01:33 -0700 |
commit | 320bda705956c53f753d9b8af208dae0352034b7 (patch) | |
tree | 36312c8064afbdcfa836ee8cbed18397782adc7e /src/service.h | |
parent | 07ae6eb9cdfe73fce94b9af0016c3e896ff5dce9 (diff) | |
download | bluez-320bda705956c53f753d9b8af208dae0352034b7.tar.gz |
core: add is_allowed property in btd_service
This adds is_allowed property in btd_service. When is_allowed is set to
false, calling btd_service_connect and service_accept will fail and the
existing service connection gets disconnected.
Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Diffstat (limited to 'src/service.h')
-rw-r--r-- | src/service.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/service.h b/src/service.h index 88530cc17..5a2a02447 100644 --- a/src/service.h +++ b/src/service.h @@ -51,6 +51,8 @@ int btd_service_get_error(const struct btd_service *service); unsigned int btd_service_add_state_cb(btd_service_state_cb cb, void *user_data); bool btd_service_remove_state_cb(unsigned int id); +void btd_service_set_allowed(struct btd_service *service, bool allowed); +bool btd_service_is_allowed(struct btd_service *service); /* Functions used by profile implementation */ void btd_service_connecting_complete(struct btd_service *service, int err); |