File: bt.h

package info (click to toggle)
qemu 1%3A3.1%2Bdfsg-8%2Bdeb10u8
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 96,124 kB
  • sloc: ansic: 1,392,216; cpp: 26,007; python: 23,651; sh: 22,159; asm: 14,346; makefile: 7,698; perl: 4,693; objc: 1,378; xml: 957
file content (20 lines) | stat: -rw-r--r-- 639 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef SYSEMU_BT_H
#define SYSEMU_BT_H

/* 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, size_t len);
    void (*sco_send)(struct HCIInfo *hci, const uint8_t *data, size_t len);
    void (*acl_send)(struct HCIInfo *hci, const uint8_t *data, size_t len);
    void *opaque;
    void (*evt_recv)(void *opaque, const uint8_t *data, size_t len);
    void (*acl_recv)(void *opaque, const uint8_t *data, size_t len);
};

/* bt-host.c */
struct HCIInfo *bt_host_hci(const char *id);
struct HCIInfo *qemu_next_hci(void);

#endif