since: 2.80


gi_type_info_get_interface (
  GITypeInfo* info


For types which have GI_TYPE_TAG_INTERFACE such as GObjects and boxed values, this function returns full information about the referenced type.

You can then inspect the type of the returned GIBaseInfo to further query whether it is a concrete GObject, an interface, a structure, etc., using the type checking macros like GI_IS_OBJECT_INFO(), or raw GTypes with G_TYPE_FROM_INSTANCE().

Available since: 2.80

Return value

Type: GIBaseInfo

The GIBaseInfo, or NULL. Free it with gi_base_info_unref() when done.

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