2009-03-10 22:43:35 +01:00
|
|
|
#ifndef BT_HOST_H
|
|
|
|
#define BT_HOST_H
|
|
|
|
|
2012-10-24 09:36:16 +02: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-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
|