GIRepository: add API for extending library paths

Previously we would require applications that shipped with private
typelibs to add the private path to LD_LIBRARY_PATH, or to have a
launcher binary with the right RPATH.
Now they can just call GIRepository.prepend_library_path() before
they access the module.

https://bugzilla.gnome.org/show_bug.cgi?id=694485
This commit is contained in:
Giovanni Campagna
2013-02-22 01:50:48 +01:00
parent a7a47f4375
commit 50638cf403
3 changed files with 69 additions and 24 deletions

View File

@@ -134,6 +134,7 @@ g_irepository_get_typelib_path
g_irepository_get_version
g_irepository_is_registered
g_irepository_load_typelib
g_irepository_prepend_library_path
g_irepository_prepend_search_path
g_irepository_require
g_irepository_require_private