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.

Fields
ModuleC * _cInstancePtr
bool owned
Methods
void * _cPtr()
bool close()Closes a module. Returns: true on success
void 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 error
bool supported()Checks if modules are supported on the current platform. Returns: true if modules are supported
Constructors
this(void * ptr, Flag!"Take" take)
Constructors
this(GError * err)
this(Code code, string msg)