Method

GLibVariantget_maybe

Declaration

GVariant*
g_variant_get_maybe (
  GVariant* value
)

Description

Given a maybe-typed GVariant instance, extract its value. If the value is Nothing, then this function returns NULL.

Available since:2.24

Return value

Returns: GVariant
 

The contents of value, or NULL.

 The caller of the method takes ownership of the data, and is responsible for freeing it.
 The return value can be NULL.