load_all_in_directory_and_prefixes


Description:

[ Version ( since = "3.40" ) ]
public static List<unowned Module> load_all_in_directory_and_prefixes (string dirname, string? dirprefix)

Loads all the modules in the specified directory into memory and the other custom prefixes returned by util_get_directory_variants.

If you want to unload them (enabling on-demand loading) you must call unuse on all the modules. Free the returned list with g_list_free.

When dirprefix is null, or not a prefix of dirname, behaves the same as load_all_in_directory.

Parameters:

dirname

pathname for a directory containing modules to load

dirprefix

prefix of dirname, which can be replaced by custom prefixes, or null

Returns:

a list of Modules loaded from dirname and any extra prefix directory.