diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-24 15:49:52 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-24 15:49:52 +0300 |
commit | a5883ecb1aa94b09bcf0e7ce4184d262027c5939 (patch) | |
tree | 80ce381543b85d61ea54f930a25d08ebabc1291c /src/device.c | |
parent | fffc600099fdd44e485fa4925a599d790424f881 (diff) |
Use g_dbus_send_message instead of dbus_connection_send
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 6 |
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); |