summaryrefslogtreecommitdiff
path: root/src/profile.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-08-19 15:41:49 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-09-09 17:35:30 +0300
commitc0e939db34948095babf82c7cf12e3002e502d69 (patch)
tree08e0ba29a4ac92b76dac6a4ced73fb7059eb54c8 /src/profile.c
parent2ed519778ffa910e4d32413c88c9ab744d4c1f4c (diff)
downloadbluez-c0e939db34948095babf82c7cf12e3002e502d69.tar.gz
core: Make use of g_dbus_send_message_with_reply
This replaces dbus_connection_send_with_reply with g_dbus_send_message_with_reply which does not alter message order.
Diffstat (limited to 'src/profile.c')
-rw-r--r--src/profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profile.c b/src/profile.c
index 90c35351b..57aead73a 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -938,7 +938,7 @@ static bool send_new_connection(struct ext_profile *ext, struct ext_io *conn)
dbus_message_iter_close_container(&iter, &dict);
- if (!dbus_connection_send_with_reply(btd_get_dbus_connection(),
+ if (!g_dbus_send_message_with_reply(btd_get_dbus_connection(),
msg, &conn->pending, -1)) {
error("%s: sending NewConnection failed", ext->name);
dbus_message_unref(msg);
@@ -1682,7 +1682,7 @@ static int send_disconn_req(struct ext_profile *ext, struct ext_io *conn)
dbus_message_append_args(msg, DBUS_TYPE_OBJECT_PATH, &path,
DBUS_TYPE_INVALID);
- if (!dbus_connection_send_with_reply(btd_get_dbus_connection(),
+ if (!g_dbus_send_message_with_reply(btd_get_dbus_connection(),
msg, &conn->pending, -1)) {
error("%s: sending RequestDisconnection failed", ext->name);
dbus_message_unref(msg);