gobject-introspection r701 - trunk/girepository



Author: walters
Date: Mon Oct 13 16:59:09 2008
New Revision: 701
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=701&view=rev

Log:
Document g_irepository_get_dependencies


Modified:
   trunk/girepository/girepository.c
   trunk/girepository/girepository.h

Modified: trunk/girepository/girepository.c
==============================================================================
--- trunk/girepository/girepository.c	(original)
+++ trunk/girepository/girepository.c	Mon Oct 13 16:59:09 2008
@@ -306,6 +306,20 @@
   return namespace;
 }
 
+/**
+ * g_irepository_get_dependencies
+ * @repository: A #GIRepository, may be %NULL for the default
+ * @namespace: Namespace of interest
+ *
+ * Return an array of all (transitive) dependencies for namespace
+ * @namespace, including version.  The returned strings are of the
+ * form <code>namespace-version</code>.
+ *
+ * Note: The namespace must have already been loaded using a function
+ * such as #g_irepository_require before calling this function.
+ *
+ * Returns: Zero-terminated string array of versioned dependencies
+ */
 char **
 g_irepository_get_dependencies (GIRepository *repository,
 				const char *namespace)

Modified: trunk/girepository/girepository.h
==============================================================================
--- trunk/girepository/girepository.h	(original)
+++ trunk/girepository/girepository.h	Mon Oct 13 16:59:09 2008
@@ -81,7 +81,7 @@
 					   GTypelib     *typelib,
 					   GIRepositoryLoadFlags flags,
 					   GError      **error);
-gboolean      g_irepository_is_registered (GIRepository *repository, 
+gboolean      g_irepository_is_registered (GIRepository *repository,
 					   const gchar  *namespace,
 					   const gchar  *version);
 GIBaseInfo *  g_irepository_find_by_name  (GIRepository *repository,
@@ -89,7 +89,7 @@
 					   const gchar  *name);
 gboolean      g_irepository_require       (GIRepository *repository,
 					   const gchar  *namespace,
-					   const gchar  *version,           
+					   const gchar  *version,
 					   GIRepositoryLoadFlags flags,
 					   GError      **error);
 gchar      ** g_irepository_get_dependencies (GIRepository *repository,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]