From: Luiz Augusto von Dentz Date: Sat, 8 Feb 2014 11:52:45 +0000 (+0200) Subject: core/service: Add btd_service_is_blocked X-Git-Tag: accepted/tizen/common/20140930.092521~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3935736faa116385587b681c06b70212808e7b3e;p=platform%2Fupstream%2Fbluez.git core/service: Add btd_service_is_blocked --- diff --git a/src/service.c b/src/service.c index ec1ee67..73b54bd 100644 --- a/src/service.c +++ b/src/service.c @@ -327,6 +327,11 @@ void btd_service_set_blocked(struct btd_service *service, bool value) service->blocked = value; } +bool btd_service_is_blocked(const struct btd_service *service) +{ + return service->blocked; +} + 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 686e51c..8f045a7 100644 --- a/src/service.h +++ b/src/service.h @@ -63,6 +63,7 @@ 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); +bool btd_service_is_blocked(const struct btd_service *service); unsigned int btd_service_add_state_cb(btd_service_state_cb cb, void *user_data);