summaryrefslogtreecommitdiff
path: root/emulator/bthost.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-10-29 14:16:50 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-11-02 10:18:44 -0800
commit3b572018a1304623c09bbaf73546c0dfe159ea36 (patch)
tree3043fd64a5bed3ca754a67815e2c5272dc352646 /emulator/bthost.h
parent61d7e90a0c8e3f3e4d8b3cf0a23941fe91968d7e (diff)
downloadbluez-3b572018a1304623c09bbaf73546c0dfe159ea36.tar.gz
emulator/bthost: Add debug support
This adds bthost_set_debug which can be used to debug internals of bthost.
Diffstat (limited to 'emulator/bthost.h')
-rw-r--r--emulator/bthost.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/emulator/bthost.h b/emulator/bthost.h
index 3841f98a1..77f17fd69 100644
--- a/emulator/bthost.h
+++ b/emulator/bthost.h
@@ -23,6 +23,11 @@ void bthost_destroy(struct bthost *bthost);
typedef void (*bthost_ready_cb) (void);
void bthost_notify_ready(struct bthost *bthost, bthost_ready_cb cb);
+typedef void (*bthost_debug_func_t)(const char *str, void *user_data);
+typedef void (*bthost_destroy_func_t)(void *user_data);
+bool bthost_set_debug(struct bthost *bthost, bthost_debug_func_t callback,
+ void *user_data, bthost_destroy_func_t destroy);
+
void bthost_set_send_handler(struct bthost *bthost, bthost_send_func handler,
void *user_data);