diff options
author | Szymon Janc <szymon.janc@gmail.com> | 2014-01-20 12:08:34 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-01-20 15:19:25 +0200 |
commit | cada0c08967f828debfd53e1426253ae6cb99c42 (patch) | |
tree | 1f886018f89a38eeb26e8116d752992c8742ea92 /android/hidhost.c | |
parent | af00880e63bde0d9433f7bedd2532fb67bc7f7a2 (diff) | |
download | bluez-cada0c08967f828debfd53e1426253ae6cb99c42.tar.gz |
core: Add flags parameter to bt_search_service
This allows to pass custom SDP flags to sdp_connect.
Diffstat (limited to 'android/hidhost.c')
-rw-r--r-- | android/hidhost.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/hidhost.c b/android/hidhost.c index aed9899da..d66e863fc 100644 --- a/android/hidhost.c +++ b/android/hidhost.c @@ -751,7 +751,7 @@ static void bt_hid_connect(const void *buf, uint16_t len) bt_string2uuid(&uuid, HID_UUID); if (bt_search_service(&adapter_addr, &dev->dst, &uuid, - hid_sdp_search_cb, dev, NULL) < 0) { + hid_sdp_search_cb, dev, NULL, 0) < 0) { error("Failed to search sdp details"); hid_device_free(dev); status = HAL_STATUS_FAILED; @@ -1254,7 +1254,7 @@ static void connect_cb(GIOChannel *chan, GError *err, gpointer user_data) bt_string2uuid(&uuid, HID_UUID); if (bt_search_service(&src, &dev->dst, &uuid, - hid_sdp_search_cb, dev, NULL) < 0) { + hid_sdp_search_cb, dev, NULL, 0) < 0) { error("failed to search sdp details"); hid_device_free(dev); return; |