gmodule.module_
Module for [Module] class
Types 2
classModule
The #GModule struct is an opaque data structure to represent a [dynamically-loaded module][glib-Dynamic-Loading-of-Modules]. It should only be accessed via the following functions.
Methods
void * _cPtr()bool close()Closes a module. Returns: true on successvoid makeResident()Ensures that a module will never be unloaded. Any future [gmodule.module_.Module.close] calls on the module will be ignored.string name()Returns the filename that the module was opened with.bool symbol(string symbolName, out void * symbol)Gets a symbol pointer from a module, such as one exported by `GMODULEEXPORT`. Note that a valid symbol can be null.string buildPath(string directory, string moduleName)A portable way to build the filename of a module. The platform-specific prefix and suffix are added to the filename, if needed, and the result is added to the directory, using the correct separator...string error()Gets a string describing the last module error. Returns: a string describing the last module errorbool supported()Checks if modules are supported on the current platform. Returns: true if modules are supportedclassModuleException : ErrorWrap