mvz / gir_ffi

Auto-generate bindings for GObject based libraries at run time using FFI

Home Page:https://github.com/mvz/gir_ffi/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 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.