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 */
|
|
|
|
|
2019-01-11 17:08:49 +03:00
|
|
|
typedef struct HCIInfo {
|
2012-10-24 11:36:16 +04:00
|
|
|
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);
|
2019-01-11 17:08:49 +03:00
|
|
|
} HCIInfo;
|
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
|