From 89f7e6f27acfa9402a5125264f6b5641409ea079 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Fri, 12 Sep 2008 16:55:47 -0300 Subject: Added async auth + encrypt function --- common/glib-helper.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/glib-helper.h') diff --git a/common/glib-helper.h b/common/glib-helper.h index 8e12bf19..74ba7dfa 100644 --- a/common/glib-helper.h +++ b/common/glib-helper.h @@ -27,6 +27,7 @@ typedef void (*bt_io_callback_t) (GIOChannel *io, int err, const bdaddr_t *src, const bdaddr_t *dst, gpointer user_data); typedef void (*bt_callback_t) (sdp_list_t *recs, int err, gpointer user_data); typedef void (*bt_destroy_t) (gpointer user_data); +typedef void (*bt_hci_result_t) (uint8_t status, gpointer user_data); int bt_discover_services(const bdaddr_t *src, const bdaddr_t *dst, bt_callback_t cb, void *user_data, bt_destroy_t destroy); @@ -59,6 +60,9 @@ int bt_sco_connect(const bdaddr_t *src, const bdaddr_t *dst, GIOChannel *bt_sco_listen(const bdaddr_t *src, uint16_t mtu, bt_io_callback_t cb, void *user_data); +int bt_acl_encrypt(const bdaddr_t *src, uint16_t handle, + bt_hci_result_t cb, gpointer user_data); + /* Experiemental bt_io API */ typedef struct bt_io BtIO; -- cgit From ad81c796ad12b4ecb4436dd28e5cbdc1f5c5414e Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Fri, 12 Sep 2008 20:18:49 -0300 Subject: Pass Bluetooth address instead of handle for async encryption func --- common/glib-helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/glib-helper.h') diff --git a/common/glib-helper.h b/common/glib-helper.h index 74ba7dfa..ee63b2d7 100644 --- a/common/glib-helper.h +++ b/common/glib-helper.h @@ -60,7 +60,7 @@ int bt_sco_connect(const bdaddr_t *src, const bdaddr_t *dst, GIOChannel *bt_sco_listen(const bdaddr_t *src, uint16_t mtu, bt_io_callback_t cb, void *user_data); -int bt_acl_encrypt(const bdaddr_t *src, uint16_t handle, +int bt_acl_encrypt(const bdaddr_t *src, const bdaddr_t *dst, bt_hci_result_t cb, gpointer user_data); /* Experiemental bt_io API */ -- cgit