Method

GIRepositoryRepositoryget_library_path

since: 2.80

Declaration [src]

const char* const*
gi_repository_get_library_path (
  GIRepository* repository,
  size_t* n_paths_out
)

Description [src]

Returns the current search path GIRepository will use when loading shared libraries referenced by imported namespaces.

The list is internal to GIRepository and should not be freed, nor should its string elements.

The list is guaranteed to be NULL terminated. The NULL terminator is not counted in n_paths_out.

Available since: 2.80

Parameters

n_paths_out

Type: size_t*

The number of library paths returned.

The argument will be set by the function.
The argument can be NULL.

Return value

Type: An array of filename

List of search paths, most important first.

The length of the array is in the n_paths_out argument.
The returned data is owned by the instance.
Each element is a platform-native string, using the preferred OS encoding on Unix and UTF-8 on Windows..