2016-06-29 11:12:57 +03:00
|
|
|
#ifndef SYSEMU_BT_H
|
|
|
|
#define SYSEMU_BT_H
|
2009-03-11 00:43:35 +03:00
|
|
|
|
2012-10-24 11:36:16 +04:00
|
|
|
/* 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);
|
|
|
|
};
|
2009-03-11 00:43:35 +03:00
|
|
|
|
|
|
|
/* bt-host.c */
|
|
|
|
struct HCIInfo *bt_host_hci(const char *id);
|
2012-10-24 11:36:16 +04:00
|
|
|
struct HCIInfo *qemu_next_hci(void);
|
2009-03-11 00:43:35 +03:00
|
|
|
|
|
|
|
#endif
|