mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-25 03:32:12 +01:00
gvariant: fix introspection annotations
g_variant_get_strv and g_variant_get_bytestring return arrays that are null terminated and have an explicit length. Since gjs doesn't support (out) arrays with length, mark them also null-terminated (but leave the length annotation, so pygobject can remove the argument) https://bugzilla.gnome.org/show_bug.cgi?id=646635
This commit is contained in:
parent
cfcd7f5f92
commit
e9cb768967
@ -1358,7 +1358,7 @@ g_variant_new_strv (const gchar * const *strv,
|
|||||||
* g_variant_get_strv:
|
* g_variant_get_strv:
|
||||||
* @value: an array of strings #GVariant
|
* @value: an array of strings #GVariant
|
||||||
* @length: (out) (allow-none): the length of the result, or %NULL
|
* @length: (out) (allow-none): the length of the result, or %NULL
|
||||||
* @returns: (array length=length) (transfer container): an array of constant
|
* @returns: (array length=length zero-terminated=1) (transfer container): an array of constant
|
||||||
* strings
|
* strings
|
||||||
*
|
*
|
||||||
* Gets the contents of an array of strings #GVariant. This call
|
* Gets the contents of an array of strings #GVariant. This call
|
||||||
@ -1408,7 +1408,7 @@ g_variant_get_strv (GVariant *value,
|
|||||||
* g_variant_dup_strv:
|
* g_variant_dup_strv:
|
||||||
* @value: an array of strings #GVariant
|
* @value: an array of strings #GVariant
|
||||||
* @length: (out) (allow-none): the length of the result, or %NULL
|
* @length: (out) (allow-none): the length of the result, or %NULL
|
||||||
* @returns: (array length=length) (transfer full): an array of strings
|
* @returns: (array length=length zero-terminated=1) (transfer full): an array of strings
|
||||||
*
|
*
|
||||||
* Gets the contents of an array of strings #GVariant. This call
|
* Gets the contents of an array of strings #GVariant. This call
|
||||||
* makes a deep copy; the return result should be released with
|
* makes a deep copy; the return result should be released with
|
||||||
|
Loading…
x
Reference in New Issue
Block a user