2009-03-11 05:43:35 +08:00
|
|
|
#ifndef BT_HOST_H
|
|
|
|
#define BT_HOST_H
|
|
|
|
|
2012-10-24 15:36:16 +08: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 05:43:35 +08:00
|
|
|
|
|
|
|
/* bt-host.c */
|
|
|
|
struct HCIInfo *bt_host_hci(const char *id);
|
2012-10-24 15:36:16 +08:00
|
|
|
struct HCIInfo *qemu_next_hci(void);
|
2009-03-11 05:43:35 +08:00
|
|
|
|
|
|
|
#endif
|