Method

GLibVariantget_child

Declaration

void
g_variant_get_child (
  GVariant* value,
  gsize index_,
  const gchar* format_string,
  ...
)

Description

Reads a child item out of a container GVariant instance and deconstructs it according to format_string. This call is essentially a combination of g_variant_get_child_value() and g_variant_get().

format_string determines the C types that are used for unpacking the values and also determines if the values are copied or borrowed, see the section on [GVariant format strings][gvariant-format-strings-pointers].

Available since:2.24

Parameters

index_ gsize
 

The index of the child to deconstruct.

format_string const gchar*
 

A GVariant format string.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
... none
 

Arguments, as per format_string.