Gio.io_modules_load_all_in_directory_with_scope
function io_modules_load_all_in_directory_with_scope(dirname: String, scope: Gio.IOModuleScope): Array(Gio.IOModule) { // Gjs wrapper for g_io_modules_load_all_in_directory_with_scope() }
Loads all the modules in the specified directory.
If don't require all modules to be initialized (and thus registering all gtypes) then you can use Gio.io_modules_scan_all_in_directory which allows delayed/lazy loading of modules.
Since 2.30
- dirname
pathname for a directory containing modules to load.
- scope
a scope to use when scanning the modules.
- Returns
a list of #GIOModules loaded from the directory, All the modules are loaded into memory, if you want to unload them (enabling on-demand loading) you must call GObject.TypeModule.prototype.unuse on all the modules. Free the list with GLib.List.free.