From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> --- The idea behind it is that HoG would use this API to register a callback and internally Register App could also make use of it to register its own callbacks, futhermore we can use the list of registered profiles to do scanning and advertising handling. android/gatt.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/android/gatt.h b/android/gatt.h index d4392d9..b91038a 100644 --- a/android/gatt.h +++ b/android/gatt.h @@ -23,3 +23,9 @@ bool bt_gatt_register(struct ipc *ipc, const bdaddr_t *addr); void bt_gatt_unregister(void); + +typedef void (*gatt_conn_cb_t)(void *conn, int status, void *user_data); + +unsigned int bt_gatt_register_profile(const uint8_t *uuid, gatt_conn_cb_t func, + void *user_data); +bool bt_gatt_unregister_profile(unsigned int id); -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html