Type Alias GTypePluginClass

Source
pub type GTypePluginClass = _GTypePluginClass;
Expand description

GTypePlugin:

The GTypePlugin typedef is used as a placeholder for objects that implement the GTypePlugin interface. / /** GTypePluginClass: @use_plugin: Increases the use count of the plugin. @unuse_plugin: Decreases the use count of the plugin. @complete_type_info: Fills in the #GTypeInfo and #GTypeValueTable structs for the type. The structs are initialized with memset(s, 0, sizeof (s)) before calling this function. @complete_interface_info: Fills in missing parts of the #GInterfaceInfo for the interface. The structs is initialized with memset(s, 0, sizeof (s)) before calling this function.

The #GTypePlugin interface is used by the type system in order to handle the lifecycle of dynamically loaded types.

Aliased Type§

struct GTypePluginClass {
    pub base_iface: _GTypeInterface,
    pub use_plugin: Option<unsafe extern "C" fn(*mut _GTypePlugin)>,
    pub unuse_plugin: Option<unsafe extern "C" fn(*mut _GTypePlugin)>,
    pub complete_type_info: Option<unsafe extern "C" fn(*mut _GTypePlugin, u64, *mut _GTypeInfo, *mut _GTypeValueTable)>,
    pub complete_interface_info: Option<unsafe extern "C" fn(*mut _GTypePlugin, u64, u64, *mut _GInterfaceInfo)>,
}

Fields§

§base_iface: _GTypeInterface§use_plugin: Option<unsafe extern "C" fn(*mut _GTypePlugin)>§unuse_plugin: Option<unsafe extern "C" fn(*mut _GTypePlugin)>§complete_type_info: Option<unsafe extern "C" fn(*mut _GTypePlugin, u64, *mut _GTypeInfo, *mut _GTypeValueTable)>§complete_interface_info: Option<unsafe extern "C" fn(*mut _GTypePlugin, u64, u64, *mut _GInterfaceInfo)>