diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-10-29 14:15:34 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-11-02 10:18:38 -0800 |
commit | 61d7e90a0c8e3f3e4d8b3cf0a23941fe91968d7e (patch) | |
tree | 60d17c2fb5e93f6b239650c48c69801698a0f84c /emulator/btdev.h | |
parent | e313defde920a4875ea461af26821ace07438cbb (diff) | |
download | bluez-61d7e90a0c8e3f3e4d8b3cf0a23941fe91968d7e.tar.gz |
emulator/btdev: Add debug support
This adds btdev_set_debug which can be used to debug internals of
btdev.
Diffstat (limited to 'emulator/btdev.h')
-rw-r--r-- | emulator/btdev.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/emulator/btdev.h b/emulator/btdev.h index 7cb265f1c..f7cba149a 100644 --- a/emulator/btdev.h +++ b/emulator/btdev.h @@ -66,6 +66,11 @@ struct btdev; struct btdev *btdev_create(enum btdev_type type, uint16_t id); void btdev_destroy(struct btdev *btdev); +typedef void (*btdev_debug_func_t)(const char *str, void *user_data); +typedef void (*btdev_destroy_func_t)(void *user_data); +bool btdev_set_debug(struct btdev *btdev, btdev_debug_func_t callback, + void *user_data, btdev_destroy_func_t destroy); + const uint8_t *btdev_get_bdaddr(struct btdev *btdev); uint8_t *btdev_get_features(struct btdev *btdev); |