diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-10-29 14:45:55 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-11-02 10:18:48 -0800 |
commit | 2bef85afdf43e653aacf58ebde279778524c18aa (patch) | |
tree | d461d6c876eee6a5cb2de0d8cf75eaf45a0feb65 /emulator/hciemu.h | |
parent | 3b572018a1304623c09bbaf73546c0dfe159ea36 (diff) | |
download | bluez-2bef85afdf43e653aacf58ebde279778524c18aa.tar.gz |
emulator/hciemu: Add debug support
This adds bthost_set_debug which can be used to debug internals of
hciemu.
Diffstat (limited to 'emulator/hciemu.h')
-rw-r--r-- | emulator/hciemu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/emulator/hciemu.h b/emulator/hciemu.h index c8ec80d8d..d0708277d 100644 --- a/emulator/hciemu.h +++ b/emulator/hciemu.h @@ -34,6 +34,11 @@ struct hciemu *hciemu_new(enum hciemu_type type); struct hciemu *hciemu_ref(struct hciemu *hciemu); void hciemu_unref(struct hciemu *hciemu); +typedef void (*hciemu_debug_func_t)(const char *str, void *user_data); +typedef void (*hciemu_destroy_func_t)(void *user_data); +bool hciemu_set_debug(struct hciemu *hciemu, hciemu_debug_func_t callback, + void *user_data, hciemu_destroy_func_t destroy); + struct bthost *hciemu_client_get_host(struct hciemu *hciemu); const char *hciemu_get_address(struct hciemu *hciemu); |