aboutsummaryrefslogtreecommitdiffstats
path: root/bt-host.c
diff options
context:
space:
mode:
authorDavid Turner <digit@android.com>2010-09-10 14:15:17 +0200
committerDavid 'Digit' Turner <digit@android.com>2010-09-13 00:30:35 -0700
commit315ceb8a16eb7a2102fee4946898e7b8a202e86a (patch)
tree965bfdf7ad21143b823590e9f1ab7da086fb0ddd /bt-host.c
parent9d1188280fa5294f9438424e5e8eae91f645bfd8 (diff)
downloadexternal_qemu-315ceb8a16eb7a2102fee4946898e7b8a202e86a.zip
external_qemu-315ceb8a16eb7a2102fee4946898e7b8a202e86a.tar.gz
external_qemu-315ceb8a16eb7a2102fee4946898e7b8a202e86a.tar.bz2
upstream: qemu-sockets changes.
Diffstat (limited to 'bt-host.c')
-rw-r--r--bt-host.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/bt-host.c b/bt-host.c
index e174e90..6931e7c 100644
--- a/bt-host.c
+++ b/bt-host.c
@@ -80,13 +80,6 @@ static void bt_host_sco(struct HCIInfo *hci, const uint8_t *data, int len)
bt_host_send(hci, HCI_SCODATA_PKT, data, len);
}
-static int bt_host_read_poll(void *opaque)
-{
- struct bt_host_hci_s *s = (struct bt_host_hci_s *) opaque;
-
- return !!s->hci.evt_recv;
-}
-
static void bt_host_read(void *opaque)
{
struct bt_host_hci_s *s = (struct bt_host_hci_s *) opaque;
@@ -192,7 +185,7 @@ struct HCIInfo *bt_host_hci(const char *id)
s->hci.acl_send = bt_host_acl;
s->hci.bdaddr_set = bt_host_bdaddr_set;
- qemu_set_fd_handler2(s->fd, bt_host_read_poll, bt_host_read, NULL, s);
+ qemu_set_fd_handler(s->fd, bt_host_read, NULL, s);
return &s->hci;
}