gobject-introspection r893 - in trunk: . girepository
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r893 - in trunk: . girepository
- Date: Wed, 12 Nov 2008 12:40:34 +0000 (UTC)
Author: johan
Date: Wed Nov 12 12:40:34 2008
New Revision: 893
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=893&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/girepository/girepository.c
trunk/girepository/girepository.h
Modified: trunk/girepository/girepository.c
==============================================================================
--- trunk/girepository/girepository.c (original)
+++ trunk/girepository/girepository.c Wed Nov 12 12:40:34 2008
@@ -137,6 +137,21 @@
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)
{
Modified: trunk/girepository/girepository.h
==============================================================================
--- trunk/girepository/girepository.h (original)
+++ trunk/girepository/girepository.h Wed Nov 12 12:40:34 2008
@@ -77,6 +77,7 @@
GType g_irepository_get_type (void) G_GNUC_CONST;
GIRepository *g_irepository_get_default (void);
void g_irepository_prepend_search_path (const char *directory);
+GSList * g_irepository_get_search_path (void);
const char * g_irepository_load_typelib (GIRepository *repository,
GTypelib *typelib,
GIRepositoryLoadFlags flags,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]