Method
GioDBusProxycall_with_unix_fd_list_sync
Declaration
GVariant*
g_dbus_proxy_call_with_unix_fd_list_sync (
GDBusProxy* proxy,
const gchar* method_name,
GVariant* parameters,
GDBusCallFlags flags,
gint timeout_msec,
GUnixFDList* fd_list,
GUnixFDList** out_fd_list,
GCancellable* cancellable,
GError** error
)
Description
Like g_dbus_proxy_call_sync()
but also takes and returns GUnixFDList
objects.
This method is only available on UNIX.
Available since: | 2.30 |
Parameters
method_name
-
Type:
const gchar*
Name of method to invoke.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. parameters
-
Type:
GVariant
A
GVariant
tuple with parameters for the signal orNULL
if not passing parameters.The argument can be NULL
.The data is owned by the caller of the function. flags
-
Type:
GDBusCallFlags
Flags from the
GDBusCallFlags
enumeration. timeout_msec
-
Type:
gint
The timeout in milliseconds (with
G_MAXINT
meaning “infinite”) or -1 to use the proxy default timeout. fd_list
-
Type:
GUnixFDList
A
GUnixFDList
orNULL
.The argument can be NULL
.The data is owned by the caller of the function. out_fd_list
-
Type:
GUnixFDList
Return location for a
GUnixFDList
orNULL
.The argument will be set by the function. The argument can be NULL
.The instance takes ownership of the data, and is responsible for freeing it. cancellable
-
Type:
GCancellable
A
GCancellable
orNULL
.The argument can be NULL
.The data is owned by the caller of the function. error
-
Type:
GError **
The return location for a
GError*
, orNULL
.
Return value
Type: GVariant
NULL
if error
is set. Otherwise a GVariant
tuple with
return values. Free with g_variant_unref().
The caller of the method takes ownership of the data, and is responsible for freeing it. |