DBusConnection.callWithUnixFdListSync

glib.variant.Variant callWithUnixFdListSync(string busName, string objectPath, string interfaceName, string methodName, glib.variant.Variant parameters, glib.variant_type.VariantType replyType, gio.types.DBusCallFlags flags, int timeoutMsec, gio.unix_fdlist.UnixFDList fdList, out gio.unix_fdlist.UnixFDList outFdList, gio.cancellable.Cancellable cancellable = null)

Like [gio.dbus_connection.DBusConnection.callSync] but also takes and returns #GUnixFDList objects. See [gio.dbus_connection.DBusConnection.callWithUnixFdList] and [gio.dbus_connection.DBusConnection.callWithUnixFdListFinish] for more details.

This method is only available on UNIX.

Parameters

busNamea unique or well-known bus name or null if connection is not a message bus connection
objectPathpath of remote object
interfaceNameD-Bus interface to invoke method on
methodNamethe name of the method to invoke
parametersa #GVariant tuple with parameters for the method or null if not passing parameters
replyTypethe expected type of the reply, or null
flagsflags from the #GDBusCallFlags enumeration
timeoutMsecthe timeout in milliseconds, -1 to use the default timeout or G_MAXINT for no timeout
fdLista #GUnixFDList or null
outFdListreturn location for a #GUnixFDList or null
cancellablea #GCancellable or null

Returns

null if error is set. Otherwise a non-floating

#GVariant tuple with return values. Free with [glib.variant.Variant.unref].

Throws

[ErrorWrap]