summaryrefslogtreecommitdiffstats
path: root/common/glib-helper.h
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2008-09-12 16:55:47 -0300
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2008-09-12 20:34:43 -0300
commit89f7e6f27acfa9402a5125264f6b5641409ea079 (patch)
treef8d49964ee3d213609e26eb6ea1eb1860bead12c /common/glib-helper.h
parentd516f96d8b123b36e0def74cce827026f100d379 (diff)
Added async auth + encrypt function
Diffstat (limited to 'common/glib-helper.h')
-rw-r--r--common/glib-helper.h4
1 files changed, 4 insertions, 0 deletions
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;