aboutsummaryrefslogtreecommitdiff
path: root/bt-host.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-10-24 09:36:16 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2012-12-19 08:29:59 +0100
commit090f7ac5ba433ef9de7004b8e8304d06bd9ffd7d (patch)
tree01de9337ffbbabe1dc0429819b88ca3b8718675d /bt-host.h
parentf8fe796407d8b340def61a6b57991e47aee3cfc4 (diff)
net: move Bluetooth stuff out of net.h
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'bt-host.h')
-rw-r--r--bt-host.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/bt-host.h b/bt-host.h
index f1eff65f45..2bc6d53cca 100644
--- a/bt-host.h
+++ b/bt-host.h
@@ -1,9 +1,20 @@
#ifndef BT_HOST_H
#define BT_HOST_H
-struct HCIInfo;
+/* BT HCI info */
+
+struct HCIInfo {
+ int (*bdaddr_set)(struct HCIInfo *hci, const uint8_t *bd_addr);
+ void (*cmd_send)(struct HCIInfo *hci, const uint8_t *data, int len);
+ void (*sco_send)(struct HCIInfo *hci, const uint8_t *data, int len);
+ void (*acl_send)(struct HCIInfo *hci, const uint8_t *data, int len);
+ void *opaque;
+ void (*evt_recv)(void *opaque, const uint8_t *data, int len);
+ void (*acl_recv)(void *opaque, const uint8_t *data, int len);
+};
/* bt-host.c */
struct HCIInfo *bt_host_hci(const char *id);
+struct HCIInfo *qemu_next_hci(void);
#endif