### Namespace

# GModule – 2.0

Portable API for dynamically loading modules

Version | 2.80.2
Authors | GLib Development Team
License | LGPL-2.1-or-later
Website | https://www.gtk.org
Source | https://gitlab.gnome.org/GNOME/glib/

#### Build

C headers | `gmodule.h`
pkg-config files | `gmodule-2.0`

#### Dependencies

GLib—2.0 | The base utility library
| Browse documentation

#### Additional documentation

- Dynamic Loading of Modules
- Classes Hierarchy

#### 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. since: 2.0

#### Bitfields

ModuleFlags | Flags passed to g_module_open(). Note that these flags are not supported on all platforms. since: 2.0

#### 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. since: 2.0
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. since: 2.0

#### Function Macros

DEPRECATED_ENUMERATOR_IN_2_26_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_28_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_30_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_32_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_34_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_36_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_38_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_40_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_42_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_44_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_46_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_48_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_50_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_52_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_54_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_56_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_58_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_60_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_62_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_64_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_66_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_68_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_70_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_72_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_74_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_76_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_78_FOR | since: 2.0
DEPRECATED_ENUMERATOR_IN_2_80_FOR | since: 2.0
DEPRECATED_FOR | since: 2.0
DEPRECATED_IN_2_26_FOR | since: 2.0
DEPRECATED_IN_2_28_FOR | since: 2.0
DEPRECATED_IN_2_30_FOR | since: 2.0
DEPRECATED_IN_2_32_FOR | since: 2.0
DEPRECATED_IN_2_34_FOR | since: 2.0
DEPRECATED_IN_2_36_FOR | since: 2.0
DEPRECATED_IN_2_38_FOR | since: 2.0
DEPRECATED_IN_2_40_FOR | since: 2.0
DEPRECATED_IN_2_42_FOR | since: 2.0
DEPRECATED_IN_2_44_FOR | since: 2.0
DEPRECATED_IN_2_46_FOR | since: 2.0
DEPRECATED_IN_2_48_FOR | since: 2.0
DEPRECATED_IN_2_50_FOR | since: 2.0
DEPRECATED_IN_2_52_FOR | since: 2.0
DEPRECATED_IN_2_54_FOR | since: 2.0
DEPRECATED_IN_2_56_FOR | since: 2.0
DEPRECATED_IN_2_58_FOR | since: 2.0
DEPRECATED_IN_2_60_FOR | since: 2.0
DEPRECATED_IN_2_62_FOR | since: 2.0
DEPRECATED_IN_2_64_FOR | since: 2.0
DEPRECATED_IN_2_66_FOR | since: 2.0
DEPRECATED_IN_2_68_FOR | since: 2.0
DEPRECATED_IN_2_70_FOR | since: 2.0
DEPRECATED_IN_2_72_FOR | since: 2.0
DEPRECATED_IN_2_74_FOR | since: 2.0
DEPRECATED_IN_2_76_FOR | since: 2.0
DEPRECATED_IN_2_78_FOR | since: 2.0
DEPRECATED_IN_2_80_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_26_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_28_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_30_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_32_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_34_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_36_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_38_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_40_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_42_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_44_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_46_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_48_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_50_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_52_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_54_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_56_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_58_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_60_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_62_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_64_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_66_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_68_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_70_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_72_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_74_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_76_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_78_FOR | since: 2.0
DEPRECATED_MACRO_IN_2_80_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_26_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_28_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_30_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_32_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_34_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_36_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_38_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_40_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_42_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_44_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_46_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_48_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_50_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_52_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_54_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_56_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_58_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_60_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_62_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_64_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_66_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_68_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_70_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_72_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_74_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_76_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_78_FOR | since: 2.0
DEPRECATED_TYPE_IN_2_80_FOR | since: 2.0
UNAVAILABLE | since: 2.0
UNAVAILABLE_STATIC_INLINE | since: 2.0

#### Constants

MODULE_IMPL_AR | since: 2.0
MODULE_IMPL_DL | since: 2.0
MODULE_IMPL_NONE | since: 2.0
MODULE_IMPL_WIN32 | since: 2.0