sendMessageWithReplyFinish

open fun sendMessageWithReplyFinish(res: AsyncResult): <Error class: unknown class><DBusMessage>

Finishes an operation started with g_dbus_connection_send_message_with_reply().

Note that @error is only set if a local in-process error occurred. That is to say that the returned #GDBusMessage object may be of type %G_DBUS_MESSAGE_TYPE_ERROR. Use g_dbus_message_to_gerror() to transcode this to a #GError.

See this gdbus-server and gdbus-unix-fd-client for an example of how to use this low-level API to send and receive UNIX file descriptors.

Return

a locked #GDBusMessage or null if @error is set

Since

2.26

Parameters

res

a #GAsyncResult obtained from the #GAsyncReadyCallback passed to g_dbus_connection_send_message_with_reply()