summaryrefslogtreecommitdiff
path: root/emulator/hciemu.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-11-25 13:13:04 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-12-17 16:12:39 -0800
commit77d6ee6fbd8c7a38347189f061b27180193b3603 (patch)
tree98963dab371f396a253099cd0a7567df6531819e /emulator/hciemu.h
parentb5932a5b8848c9b358f4e320f580025de717b130 (diff)
downloadbluez-77d6ee6fbd8c7a38347189f061b27180193b3603.tar.gz
hciemu: Add support for multiple clients
This adds support for creating multiple clients (bthost).
Diffstat (limited to 'emulator/hciemu.h')
-rw-r--r--emulator/hciemu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/emulator/hciemu.h b/emulator/hciemu.h
index d0708277d..8bf2d070e 100644
--- a/emulator/hciemu.h
+++ b/emulator/hciemu.h
@@ -12,6 +12,7 @@
#include <stdint.h>
struct hciemu;
+struct hciemu_client;
enum hciemu_type {
HCIEMU_TYPE_BREDRLE,
@@ -30,10 +31,15 @@ enum hciemu_hook_type {
};
struct hciemu *hciemu_new(enum hciemu_type type);
+struct hciemu *hciemu_new_num(enum hciemu_type type, uint8_t num);
struct hciemu *hciemu_ref(struct hciemu *hciemu);
void hciemu_unref(struct hciemu *hciemu);
+struct hciemu_client *hciemu_get_client(struct hciemu *hciemu, int num);
+struct bthost *hciemu_client_host(struct hciemu_client *client);
+const uint8_t *hciemu_client_bdaddr(struct hciemu_client *client);
+
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,