summaryrefslogtreecommitdiff
path: root/android/gatt.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-06-01 18:45:38 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-06-13 15:47:34 +0300
commitdc4d41d9436dfd6c8c113e3cf79f2a7f009db5da (patch)
tree8dc75abfb41cdd0f72c8e061d35d9910e2bc971e /android/gatt.h
parentfb36e4983c533eb972eb9a673f6d4d803e07f05a (diff)
downloadbluez-dc4d41d9436dfd6c8c113e3cf79f2a7f009db5da.tar.gz
android/gatt: Make application API public
This in future gonna be used by HoG to receive connection notifications.
Diffstat (limited to 'android/gatt.h')
-rw-r--r--android/gatt.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/android/gatt.h b/android/gatt.h
index d4392d926..5ba91610a 100644
--- a/android/gatt.h
+++ b/android/gatt.h
@@ -23,3 +23,18 @@
bool bt_gatt_register(struct ipc *ipc, const bdaddr_t *addr);
void bt_gatt_unregister(void);
+
+
+typedef enum {
+ GATT_CLIENT,
+ GATT_SERVER,
+} gatt_type_t;
+
+typedef void (*gatt_conn_cb_t)(const bdaddr_t *addr, int err, void *attrib);
+
+unsigned int bt_gatt_register_app(const char *uuid, gatt_type_t type,
+ gatt_conn_cb_t func);
+bool bt_gatt_unregister_app(unsigned int id);
+
+bool bt_gatt_connect_app(unsigned int id, const bdaddr_t *addr);
+bool bt_gatt_disconnect_app(unsigned int id, const bdaddr_t *addr);