summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-08-31 17:26:17 -0300
committerJohan Dahlin <johan@gnome.org>2010-08-31 17:29:13 -0300
commit8ebf89911bcf93baea4d5d9e22b0e40d0c43f946 (patch)
tree3115a0a3e77884423d08630b63c7c01f59b807b4
parentcd6640a236a607915674cadbd4dbac1c45c35711 (diff)
downloadgobject-introspection-8ebf89911bcf93baea4d5d9e22b0e40d0c43f946.tar.gz
[girepository] Add a couple of missing transfer
-rw-r--r--girepository/girepository.c23
1 files changed, 16 insertions, 7 deletions
diff --git a/girepository/girepository.c b/girepository/girepository.c
index 68995746..d2256066 100644
--- a/girepository/girepository.c
+++ b/girepository/girepository.c
@@ -382,7 +382,7 @@ register_internal (GIRepository *repository,
* 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
+ * Returns: (transfer full): Zero-terminated string array of versioned dependencies
*/
char **
g_irepository_get_dependencies (GIRepository *repository,
@@ -625,7 +625,7 @@ find_interface (gpointer key,
* given namespace @namespace_. The namespace must have
* already been loaded before calling this function.
*
- * Returns: #GIBaseInfo containing metadata
+ * Returns: (transfer full): #GIBaseInfo containing metadata
*/
GIBaseInfo *
g_irepository_get_info (GIRepository *repository,
@@ -666,7 +666,7 @@ g_irepository_get_info (GIRepository *repository,
* arbitrary GType - thus, this function will operate most reliably
* when you know the GType to originate from be from a loaded namespace.
*
- * Returns: #GIBaseInfo representing metadata about @type, or %NULL
+ * Returns: (transfer full): #GIBaseInfo representing metadata about @type, or %NULL
*/
GIBaseInfo *
g_irepository_find_by_gtype (GIRepository *repository,
@@ -719,7 +719,7 @@ g_irepository_find_by_gtype (GIRepository *repository,
* #g_irepository_require once to load the namespace, or otherwise
* ensure the namespace has already been loaded.
*
- * Returns: #GIBaseInfo representing metadata about @name, or %NULL
+ * Returns: (transfer full): #GIBaseInfo representing metadata about @name, or %NULL
*/
GIBaseInfo *
g_irepository_find_by_name (GIRepository *repository,
@@ -759,7 +759,7 @@ collect_namespaces (gpointer key,
}
/**
- * g_irepository_get_namespaces:
+ * g_irepository_get_loaded_namespaces:
* @repository: A #GIRepository, may be %NULL for the default
*
* Return the list of currently loaded namespaces.
@@ -1335,7 +1335,7 @@ require_internal (GIRepository *repository,
* version @version of namespace may be specified. If @version is
* not specified, the latest will be used.
*
- * Returns: a pointer to the #GTypelib if successful, %NULL otherwise
+ * Returns: (transfer full): a pointer to the #GTypelib if successful, %NULL otherwise
*/
GTypelib *
g_irepository_require (GIRepository *repository,
@@ -1370,7 +1370,7 @@ g_irepository_require (GIRepository *repository,
* version @version of namespace should be specified. If @version is
* not specified, the latest will be used.
*
- * Returns: a pointer to the #GTypelib if successful, %NULL otherwise
+ * Returns: (transfer full): a pointer to the #GTypelib if successful, %NULL otherwise
*/
GTypelib *
g_irepository_require_private (GIRepository *repository,
@@ -1410,6 +1410,15 @@ static const GOptionEntry introspection_args[] = {
{ NULL }
};
+/**
+ * g_irepository_get_option_group:
+ *
+ * Obtain the option group for girepository, it's used
+ * by the dumper and for programs that wants to provide
+ * introspection information
+ *
+ * Returns: (transfer full): the option group
+ */
GOptionGroup *
g_irepository_get_option_group (void)
{