[glib] Add annotations for g_variant_new_strv and g_variant_get_strv



commit 44cf10adceb673deefebe348350268d9436f3fab
Author: Tomeu Vizoso <tomeu vizoso collabora co uk>
Date:   Thu Jul 15 17:05:00 2010 +0200

    Add annotations for g_variant_new_strv and g_variant_get_strv

 glib/gvariant.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/glib/gvariant.c b/glib/gvariant.c
index 461ca21..a259195 100644
--- a/glib/gvariant.c
+++ b/glib/gvariant.c
@@ -1165,7 +1165,7 @@ g_variant_dup_string (GVariant *value,
 
 /**
  * g_variant_new_strv:
- * @strv: (array length=length): an array of strings
+ * @strv: (array length=length) (element-type utf8): an array of strings
  * @length: the length of @strv, or -1
  * @returns: a new floating #GVariant instance
  *
@@ -1200,7 +1200,8 @@ g_variant_new_strv (const gchar * const *strv,
  * g_variant_get_strv:
  * @value: an array of strings #GVariant
  * @length: (allow-none): the length of the result, or %NULL
- * @returns: (array length=length): an array of constant strings
+ * @returns: (array length=length) (transfer container): an array of constant
+ * strings
  *
  * Gets the contents of an array of strings #GVariant.  This call
  * makes a shallow copy; the return result should be released with



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