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/dbus-hci.c | |
parent | fffc600099fdd44e485fa4925a599d790424f881 (diff) |
Use g_dbus_send_message instead of dbus_connection_send
Diffstat (limited to 'src/dbus-hci.c')
-rw-r--r-- | src/dbus-hci.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 9ee2e09b..a043406d 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -877,9 +877,7 @@ static void emit_device_found(const char *path, const char *address, append_dict_valist(&iter, first_key, var_args); va_end(var_args); - dbus_connection_send(connection, signal, NULL); - - dbus_message_unref(signal); + g_dbus_send_message(connection, signal); } void hcid_dbus_inquiry_result(bdaddr_t *local, bdaddr_t *peer, uint32_t class, @@ -1208,8 +1206,7 @@ void hcid_dbus_disconn_complete(bdaddr_t *local, uint8_t status, } else { reply = new_authentication_return(bonding->msg, HCI_AUTHENTICATION_FAILURE); - dbus_connection_send(connection, reply, NULL); - dbus_message_unref(reply); + g_dbus_send_message(connection, reply); } adapter_free_bonding_request(adapter); } |