Module.open

Opens a module. If the module has already been opened, its reference count is incremented.

First of all g_module_open() tries to open @file_name as a module. If that fails and @file_name has the ".la"-suffix (and is a libtool archive) it tries to open the corresponding module. If that fails and it doesn't have the proper module suffix for the platform (#G_MODULE_SUFFIX), this suffix will be appended and the corresponding module will be opended. If that fails and @file_name doesn't have the ".la"-suffix, this suffix is appended and g_module_open() tries to open the corresponding module. If eventually that fails as well, %NULL is returned.

class Module
static
open

Parameters

fileName string

the name of the file containing the module, or %NULL to obtain a #GModule representing the main program itself

flags GModuleFlags

the flags used for opening the module. This can be the logical OR of any of the #GModuleFlags

Return Value

Type: Module

a #GModule on success, or %NULL on failure

Meta