summaryrefslogtreecommitdiffstats
path: root/src/device.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-10-24 15:49:52 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-10-24 15:49:52 +0300
commita5883ecb1aa94b09bcf0e7ce4184d262027c5939 (patch)
tree80ce381543b85d61ea54f930a25d08ebabc1291c /src/device.c
parentfffc600099fdd44e485fa4925a599d790424f881 (diff)
Use g_dbus_send_message instead of dbus_connection_send
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/device.c b/src/device.c
index ab3017cd..031b5f4d 100644
--- a/src/device.c
+++ b/src/device.c
@@ -813,8 +813,7 @@ static void discover_device_reply(struct browse_req *req, sdp_list_t *recs)
dbus_message_iter_close_container(&iter, &dict);
- dbus_connection_send(req->conn, reply, NULL);
- dbus_message_unref(reply);
+ g_dbus_send_message(req->conn, reply);
}
static void services_changed(struct btd_device *device)
@@ -1050,8 +1049,7 @@ proceed:
dbus_message_append_args(reply, DBUS_TYPE_OBJECT_PATH, &device->path,
DBUS_TYPE_INVALID);
- dbus_connection_send(req->conn, reply, NULL);
- dbus_message_unref(reply);
+ g_dbus_send_message(req->conn, reply);
cleanup:
browse_req_free(req);