diff options
author | Johan Dahlin <jdahlin@async.com.br> | 2008-11-12 12:40:34 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-11-12 12:40:34 +0000 |
commit | 9e7f04a87a798a881906b8d296ee927e27c25172 (patch) | |
tree | 2e1c0a51da3f322a45c6618b10f9cf597e63f0d3 /girepository/girepository.c | |
parent | 2cba8513200ead160203496570e5da9aba0ce9e1 (diff) | |
download | gobject-introspection-9e7f04a87a798a881906b8d296ee927e27c25172.tar.gz |
Add a g_irepository_get_search_path, so we can access the search paths
2008-11-12 Johan Dahlin <jdahlin@async.com.br>
* girepository/girepository.c (g_irepository_get_search_path):
* girepository/girepository.h:
Add a g_irepository_get_search_path, so we can access the search
paths from runtime.
svn path=/trunk/; revision=893
Diffstat (limited to 'girepository/girepository.c')
-rw-r--r-- | girepository/girepository.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/girepository/girepository.c b/girepository/girepository.c index dc9473a8..392118d9 100644 --- a/girepository/girepository.c +++ b/girepository/girepository.c @@ -137,6 +137,21 @@ g_irepository_prepend_search_path (const char *directory) search_path = g_slist_prepend (search_path, g_strdup (directory)); } +/** + * g_irepository_get_search_path: + * + * Returns the search path the GIRepository will use when looking for typelibs. + * The string is internal to GIRespository and should not be freed, nor should + * the elements. + * + * Return value: (element-type utf8) (transfer none): list of strings + */ +GSList * +g_irepository_get_search_path (void) +{ + return search_path; +} + static char * build_typelib_key (const char *name, const char *source) { |