diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-10-24 09:36:16 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-19 08:29:59 +0100 |
commit | 090f7ac5ba433ef9de7004b8e8304d06bd9ffd7d (patch) | |
tree | 01de9337ffbbabe1dc0429819b88ca3b8718675d /bt-host.h | |
parent | f8fe796407d8b340def61a6b57991e47aee3cfc4 (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.h | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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 |