Method

GLibVariantiter_new

Declaration

GVariantIter*
g_variant_iter_new (
  GVariant* value
)

Description

Creates a heap-allocated GVariantIter for iterating over the items in value.

Use g_variant_iter_free() to free the return value when you no longer need it.

A reference is taken to value and will be released only when g_variant_iter_free() is called.

Available since:2.24

Return value

Returns: GVariantIter
 

A new heap-allocated GVariantIter.

 The caller of the method takes ownership of the data, and is responsible for freeing it.