Callbacks

ModuleCheckInit (module)

ModuleUnload (module)

Details

GModule.ModuleCheckInit(module)
Parameters:

module (GModule.Module) – the GModule.Module corresponding to the module which has just been loaded

Returns:

None on success, or a string describing the initialization error

Return type:

str

Specifies the type of the module initialization function. If a module contains a function named g_module_check_init() it is called automatically when the module is loaded. It is passed the GModule.Module structure and should return None on success or a string describing the initialization error.

GModule.ModuleUnload(module)
Parameters:

module (GModule.Module) – the GModule.Module about to be unloaded

Specifies the type of the module function called when it is unloaded. If a module contains a function named g_module_unload() it is called automatically when the module is unloaded. It is passed the GModule.Module structure.