aurel32 | 5ef4efa | 2009-03-10 21:43:35 +0000 | [diff] [blame] | 1 | #ifndef BT_HOST_H |
| 2 | #define BT_HOST_H |
| 3 | |
Paolo Bonzini | 090f7ac | 2012-10-24 09:36:16 +0200 | [diff] [blame] | 4 | /* BT HCI info */ |
| 5 | |
| 6 | struct HCIInfo { |
| 7 | int (*bdaddr_set)(struct HCIInfo *hci, const uint8_t *bd_addr); |
| 8 | void (*cmd_send)(struct HCIInfo *hci, const uint8_t *data, int len); |
| 9 | void (*sco_send)(struct HCIInfo *hci, const uint8_t *data, int len); |
| 10 | void (*acl_send)(struct HCIInfo *hci, const uint8_t *data, int len); |
| 11 | void *opaque; |
| 12 | void (*evt_recv)(void *opaque, const uint8_t *data, int len); |
| 13 | void (*acl_recv)(void *opaque, const uint8_t *data, int len); |
| 14 | }; |
aurel32 | 5ef4efa | 2009-03-10 21:43:35 +0000 | [diff] [blame] | 15 | |
| 16 | /* bt-host.c */ |
| 17 | struct HCIInfo *bt_host_hci(const char *id); |
Paolo Bonzini | 090f7ac | 2012-10-24 09:36:16 +0200 | [diff] [blame] | 18 | struct HCIInfo *qemu_next_hci(void); |
aurel32 | 5ef4efa | 2009-03-10 21:43:35 +0000 | [diff] [blame] | 19 | |
| 20 | #endif |