[ CCode ( cname = "g_io_modules_load_all_in_directory_with_scope" ) ]
[ Version ( since = "2.30" ) ]
public static List<IOModule> load_all_in_directory_with_scope (string dirname, IOModuleScope 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 scan_all_in_directory which allows delayed/lazy loading of modules.
dirname |
pathname for a directory containing modules to load. |
scope |
a scope to use when scanning the modules. |
a list of IOModules loaded from the directory, All the modules are loaded into memory, if you want to unload them (enabling on-demand loading) you must call unuse on all the modules. Free the list with g_list_free. |