if (dbus_message_is_method_call(req->msg, DEVICE_INTERFACE,
"Pair")) {
- reply = dbus_message_new_method_return(req->msg);
- g_dbus_send_message(dbus_conn, reply);
+ g_dbus_send_reply(dbus_conn, req->msg, DBUS_TYPE_INVALID);
return;
}
* request
*/
if (device->svc_resolved && bonding) {
- DBusMessage *reply;
-
- reply = dbus_message_new_method_return(bonding->msg);
- g_dbus_send_message(dbus_conn, reply);
-
+ g_dbus_send_reply(dbus_conn, bonding->msg, DBUS_TYPE_INVALID);
bonding_request_free(bonding);
-
return;
}