summaryrefslogtreecommitdiff
path: root/src/service.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-09-16 11:16:08 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-09-17 12:49:49 -0700
commit2db4d977d8da34f80f2265d84818b85cc22f4566 (patch)
tree2972619c858af9486f2d2eefb65a229b5e27b2ef /src/service.h
parent98f27a2b00504fd3d14b52331ee8eef11ebd7f1c (diff)
downloadbluez-2db4d977d8da34f80f2265d84818b85cc22f4566.tar.gz
service: Add btd_service_is_initiator
Since BTD_SERVICE_STATE_CONNECTING is being used for both initiator and responder case it is no longer possible to use the state distint when the service connection was initiated locally or not, so to fix this a new flag is introduce to track when btd_service_connect has been called.
Diffstat (limited to 'src/service.h')
-rw-r--r--src/service.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/service.h b/src/service.h
index 5a2a02447..fa930f985 100644
--- a/src/service.h
+++ b/src/service.h
@@ -47,6 +47,7 @@ struct btd_device *btd_service_get_device(const struct btd_service *service);
struct btd_profile *btd_service_get_profile(const struct btd_service *service);
btd_service_state_t btd_service_get_state(const struct btd_service *service);
int btd_service_get_error(const struct btd_service *service);
+bool btd_service_is_initiator(const struct btd_service *service);
unsigned int btd_service_add_state_cb(btd_service_state_cb cb,
void *user_data);