DBusConnection.sendMessageWithReplyFinish

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 server[gdbus-server] and client[gdbus-unix-fd-client] for an example of how to use this low-level API to send and receive UNIX file descriptors.

class DBusConnection
sendMessageWithReplyFinish

Parameters

res AsyncResultIF

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

Return: a locked #GDBusMessage or %NULL if @error is set

Throws

GException on failure.

Meta

Since

2.26