Rename object_class
mvz opened this issue · comments
The GIR calls object class structs 'gtype structs'. GirFFI should follow this naming. The class will be called a gtype struct, its info a gtype struct info, and its instance a gtype struct instance.
It seems this is only mentioned here: https://developer-old.gnome.org/gi/stable/gi-GIStructInfo.html#g-struct-info-is-gtype-struct
It seems it's called gtype_struct
in the code, but not in the documentation.
The documentation for g_interface_info_get_iface_struct
calls it
the layout C structure associated with this #GInterface.
The documentation for StructBlob
calls it
the class or interface layout for a GObject
The documentation for g_object_info_get_class_struct
says:
Every #GObject has two structures; an instance structure and a class structure. This function returns the metadata for the class structure.
So perhaps interface_structure
and class_structure
would be good names to use.
Fixed in #296.