gtype: Add g_type_interface_instantiable_prerequisite()

There is (at most) a single GType that is instantiable and a
prerequisite for an interface. This function returns that type.

This type is necessary in particular when dealing with GValues because a
GValue contains an instance of a type.
This commit is contained in:
Benjamin Otte
2019-11-25 19:40:39 +01:00
parent ebec0dd359
commit eb20dec144
4 changed files with 50 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ g_type_default_interface_unref
g_type_children
g_type_interfaces
g_type_interface_prerequisites
g_type_interface_instantiable_prerequisite
g_type_set_qdata
g_type_get_qdata
g_type_query