get_object_gtype_interfaces


Description:

[ Version ( since = "1.62" ) ]
public void get_object_gtype_interfaces (Type gtype, out unowned InterfaceInfo[] interfaces_out)

Look up the implemented interfaces for gtype.

This function cannot fail per se; but for a totally "unknown" Type, it may return 0 implemented interfaces.

The semantics of this function are designed for a dynamic binding, where in certain cases (such as a function which returns an interface which may have "hidden" implementation classes), not all data may be statically known, and will have to be determined from the Type of the object. An example is g_file_new_for_path returning a concrete class of GLocalFile, which is a Type we see at runtime, but not statically.

Parameters:

this

a Repository, or null for the default repository

gtype

a Type whose fundamental type is G_TYPE_OBJECT

interfaces_out

Interfaces for gtype

n_interfaces_out

Number of interfaces