mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
docs: Mention D-Bus reply types are tuples
The g_dbus_connection_call() documentation doesn’t make it clear that the reply type is always a tuple. Signed-off-by: Philip Withnall <withnall@endlessm.com> Reviewed-by: nobody
This commit is contained in:
@@ -6006,7 +6006,8 @@ g_dbus_connection_call_sync_internal (GDBusConnection *connection,
|
|||||||
* @method_name: the name of the method to invoke
|
* @method_name: the name of the method to invoke
|
||||||
* @parameters: (nullable): a #GVariant tuple with parameters for the method
|
* @parameters: (nullable): a #GVariant tuple with parameters for the method
|
||||||
* or %NULL if not passing parameters
|
* or %NULL if not passing parameters
|
||||||
* @reply_type: (nullable): the expected type of the reply, or %NULL
|
* @reply_type: (nullable): the expected type of the reply (which will be a
|
||||||
|
* tuple), or %NULL
|
||||||
* @flags: flags from the #GDBusCallFlags enumeration
|
* @flags: flags from the #GDBusCallFlags enumeration
|
||||||
* @timeout_msec: the timeout in milliseconds, -1 to use the default
|
* @timeout_msec: the timeout in milliseconds, -1 to use the default
|
||||||
* timeout or %G_MAXINT for no timeout
|
* timeout or %G_MAXINT for no timeout
|
||||||
@@ -6028,7 +6029,9 @@ g_dbus_connection_call_sync_internal (GDBusConnection *connection,
|
|||||||
*
|
*
|
||||||
* If @reply_type is non-%NULL then the reply will be checked for having this type and an
|
* If @reply_type is non-%NULL then the reply will be checked for having this type and an
|
||||||
* error will be raised if it does not match. Said another way, if you give a @reply_type
|
* error will be raised if it does not match. Said another way, if you give a @reply_type
|
||||||
* then any non-%NULL return value will be of this type.
|
* then any non-%NULL return value will be of this type. Unless it’s
|
||||||
|
* %G_VARIANT_TYPE_UNIT, the @reply_type will be a tuple containing one or more
|
||||||
|
* values.
|
||||||
*
|
*
|
||||||
* If the @parameters #GVariant is floating, it is consumed. This allows
|
* If the @parameters #GVariant is floating, it is consumed. This allows
|
||||||
* convenient 'inline' use of g_variant_new(), e.g.:
|
* convenient 'inline' use of g_variant_new(), e.g.:
|
||||||
|
Reference in New Issue
Block a user