Revision ca96c316
b/bt-host.c | ||
---|---|---|
80 | 80 |
bt_host_send(hci, HCI_SCODATA_PKT, data, len); |
81 | 81 |
} |
82 | 82 |
|
83 |
static int bt_host_read_poll(void *opaque) |
|
84 |
{ |
|
85 |
struct bt_host_hci_s *s = (struct bt_host_hci_s *) opaque; |
|
86 |
|
|
87 |
return !!s->hci.evt_recv; |
|
88 |
} |
|
89 |
|
|
90 | 83 |
static void bt_host_read(void *opaque) |
91 | 84 |
{ |
92 | 85 |
struct bt_host_hci_s *s = (struct bt_host_hci_s *) opaque; |
... | ... | |
192 | 185 |
s->hci.acl_send = bt_host_acl; |
193 | 186 |
s->hci.bdaddr_set = bt_host_bdaddr_set; |
194 | 187 |
|
195 |
qemu_set_fd_handler2(s->fd, bt_host_read_poll, bt_host_read, NULL, s);
|
|
188 |
qemu_set_fd_handler(s->fd, bt_host_read, NULL, s);
|
|
196 | 189 |
|
197 | 190 |
return &s->hci; |
198 | 191 |
} |
Also available in: Unified diff