[PATCH 01/17] annotations: Annotated grl-plugin-registry



* GrlKeyIDs have been annotated as GObject.ParamSpec*. This isn't yet
  supported in GJS (but it is in PyGObject). See bug #626047
---
 src/grl-plugin-registry.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/grl-plugin-registry.c b/src/grl-plugin-registry.c
index fbfb8a3..de60b66 100644
--- a/src/grl-plugin-registry.c
+++ b/src/grl-plugin-registry.c
@@ -282,7 +282,7 @@ get_info_from_plugin_xml (const gchar *xml_path)
  * method is in charge of creating the only instance or
  * returned it if it is already in memory.
  *
- * Returns: a new or an already created instance of the registry.
+ * Returns: (transfer none): a new or an already created instance of the registry.
  *
  * It is NOT MT-safe
  */
@@ -549,7 +549,7 @@ grl_plugin_registry_lookup_source (GrlPluginRegistry *registry,
  *
  * If @ranked is %TRUE, the source list will be ordered by rank.
  *
- * Returns: (transfer container): an array of available sources
+ * Returns: (array zero-terminated=1) (transfer container): an array of available sources
  */
 GrlMediaPlugin **
 grl_plugin_registry_get_sources (GrlPluginRegistry *registry,
@@ -586,7 +586,7 @@ grl_plugin_registry_get_sources (GrlPluginRegistry *registry,
  *
  * If @ranked is %TRUE, the source list will be ordered by rank.
  *
- * Returns: (transfer container): an array of available sources
+ * Returns: (array zero-terminated=1) (transfer container): an array of available sources
  */
 GrlMediaPlugin **
 grl_plugin_registry_get_sources_by_operations (GrlPluginRegistry *registry,
@@ -681,7 +681,7 @@ grl_plugin_registry_register_metadata_key (GrlPluginRegistry *registry,
  *
  * Look up for the metadata key with name @key_name.
  *
- * Returns: (transfer none): The metadata key, or @NULL if not found
+ * Returns: (type GObject.ParamSpec*) (transfer none): The metadata key, or @NULL if not found
  */
 GrlKeyID
 grl_plugin_registry_lookup_metadata_key (GrlPluginRegistry *registry,
@@ -702,7 +702,7 @@ grl_plugin_registry_lookup_metadata_key (GrlPluginRegistry *registry,
  *
  * Returns a list with all registered keys in system.
  *
- * Returns: a list with all keys
+ * Returns: (element-type GObject.ParamSpec*) (transfer container): a list with all keys
  **/
 GList *
 grl_plugin_registry_get_metadata_keys (GrlPluginRegistry *registry)
-- 
1.7.0.4



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