diff options
author | Arman Uguray <armansito@chromium.org> | 2014-12-16 18:07:12 -0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-12-17 11:11:38 -0200 |
commit | 297330b93e61c1263b087ad0f105a2cfae02ac61 (patch) | |
tree | 9be81c647b8fbf827fe7027fec0ab276d56b1906 /src/profile.h | |
parent | 9eaab34af829cef3c8a1557a45c93c22f9110ec1 (diff) | |
download | bluez-297330b93e61c1263b087ad0f105a2cfae02ac61.tar.gz |
core: profile: Add accept function
This patch introduces the "accept" function to btd_profile. The purpose
of this function is to notify a profile when a btd_service is ready to
interact with and will be called by btd_device when a bt_gatt_client
becomes ready (MTU exchange and discovery has been completed). This is
initially meant to be optional for non-GATT based profiles but could be
generalized for them in the future.
Diffstat (limited to 'src/profile.h')
-rw-r--r-- | src/profile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/profile.h b/src/profile.h index 9aec27e97..f5a3ded09 100644 --- a/src/profile.h +++ b/src/profile.h @@ -42,6 +42,8 @@ struct btd_profile { int (*connect) (struct btd_service *service); int (*disconnect) (struct btd_service *service); + int (*accept) (struct btd_service *service); + int (*adapter_probe) (struct btd_profile *p, struct btd_adapter *adapter); void (*adapter_remove) (struct btd_profile *p, |