Document g_irepository_get_dependencies

svn path=/trunk/; revision=701
This commit is contained in:
Colin Walters 2008-10-13 16:59:09 +00:00
parent 0103bf1fe3
commit 5069680682
2 changed files with 16 additions and 2 deletions

View File

@ -306,6 +306,20 @@ register_internal (GIRepository *repository,
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)

View File

@ -81,7 +81,7 @@ const char * g_irepository_load_typelib (GIRepository *repository,
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 @@ GIBaseInfo * g_irepository_find_by_name (GIRepository *repository,
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,