Namespace

GModule – 2.0

Portable API for dynamically loading modules

Version2.74
AuthorsGTK Development Team
LicenseLGPL-2.1-or-later
Websitehttps://www.gtk.org
Sourcehttps://gitlab.gnome.org/GNOME/glib/

Build

C headersgmodule.h
pkg-config filesgmodule-2.0

Dependencies

GLib—2.0 The base utility library
Browse documentation

Structs

Module

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.

Bitfields

ModuleFlags

Flags passed to g_module_open(). Note that these flags are not supported on all platforms.

Error Domains

ModuleError

Errors returned by g_module_open_full().

since: 2.70

Callbacks

ModuleCheckInit

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 structure and should return NULL on success or a string describing the initialization error.

ModuleUnload

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 structure.