summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-08-29 21:41:55 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-08-29 21:41:55 +0000
commit4b4376398e2eab38c1b4c63030532ed59a75b462 (patch)
tree3564f3f41a8dedb09b482c2fe918a98de331c7cb
parenta68204dbb9f7cfee00d44315282124628ef4cded (diff)
Fix problem with changed async prototypes
-rw-r--r--hcid/dbus-sdp.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/hcid/dbus-sdp.c b/hcid/dbus-sdp.c
index 3bfe5a4d..6ce8df99 100644
--- a/hcid/dbus-sdp.c
+++ b/hcid/dbus-sdp.c
@@ -585,7 +585,8 @@ static gboolean sdp_client_connect_cb(GIOChannel *chan, GIOCondition cond, void
{
struct pending_connect *c = udata;
struct transaction_context *ctxt = NULL;
- sdp_list_t *search = NULL;
+ sdp_list_t *search = NULL, *attrids = NULL;
+ uint32_t range = 0x0000ffff;
uint16_t class;
int err = 0, sk = 0;
socklen_t len;
@@ -635,8 +636,9 @@ static gboolean sdp_client_connect_cb(GIOChannel *chan, GIOCondition cond, void
sdp_set_notify(ctxt->session, search_completed_cb, ctxt);
+ attrids = sdp_list_append(NULL, &range);
/* Create/send the search request and set the callback to indicate the request completion */
- if (sdp_service_search_async(ctxt->session, search) < 0) {
+ if (sdp_service_search_attr_async(ctxt->session, search, SDP_ATTR_REQ_RANGE, attrids) < 0) {
error("send request failed: %s (%d)", strerror(errno), errno);
error_failed(c->conn, c->rq, errno);
goto fail;
@@ -652,7 +654,10 @@ fail:
transaction_context_free(ctxt);
done:
if (search)
- sdp_list_free(search, 0);
+ sdp_list_free(search, NULL);
+
+ if (attrids)
+ sdp_list_free(attrids, NULL);
pending_connects = slist_remove(pending_connects, c);
pending_connect_free(c);