Method

GLibVariantTypeis_subtype_of

Declaration

gboolean
g_variant_type_is_subtype_of (
  const GVariantType* type,
  const GVariantType* supertype
)

Description

Checks if type is a subtype of supertype.

This function returns TRUE if type is a subtype of supertype. All types are considered to be subtypes of themselves. Aside from that, only indefinite types can have subtypes.

Parameters

supertype

Type: GVariantType

A GVariantType.

The data is owned by the caller of the function.

Return value

Type: gboolean

TRUE if type is a subtype of supertype

Since 2.24