2016-06-29 10:12:57 +02:00
|
|
|
#ifndef SYSEMU_BT_H
|
|
|
|
#define SYSEMU_BT_H
|
2009-03-10 22:43:35 +01:00
|
|
|
|
2012-10-24 09:36:16 +02:00
|
|
|
/* BT HCI info */
|
|
|
|
|
2019-01-11 15:08:49 +01:00
|
|
|
typedef struct HCIInfo {
|
2012-10-24 09:36:16 +02: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 15:08:49 +01:00
|
|
|
} HCIInfo;
|
2009-03-10 22:43:35 +01:00
|
|
|
|
|
|
|
/* bt-host.c */
|
|
|
|
struct HCIInfo *bt_host_hci(const char *id);
|
2012-10-24 09:36:16 +02:00
|
|
|
struct HCIInfo *qemu_next_hci(void);
|
2009-03-10 22:43:35 +01:00
|
|
|
|
|
|
|
#endif
|