dccfcd0e5f
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
21 lines
620 B
C
21 lines
620 B
C
#ifndef BT_HOST_H
|
|
#define BT_HOST_H
|
|
|
|
/* 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
|