]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Fix binding of Markup.collect_attributes
authorJens Georg <mail@jensge.org>
Thu, 22 Sep 2016 18:01:19 +0000 (20:01 +0200)
committerJens Georg <mail@jensge.org>
Thu, 22 Sep 2016 19:13:12 +0000 (21:13 +0200)
Array parameters don't have an associcated length parameter but are
null-terminated.

https://bugzilla.gnome.org/show_bug.cgi?id=771790

vapi/glib-2.0.vapi

index b15d9a66dcd452c1b8b16280fd1d277d147848b6..501df3404b69f0567ef9321eefe329267867afd9 100644 (file)
@@ -3959,7 +3959,7 @@ namespace GLib {
                public static string vprintf_escaped (string format, va_list args);
                [Version (since = "2.16")]
                [CCode (sentinel = "G_MARKUP_COLLECT_INVALID")]
-               public static bool collect_attributes (string element_name, string[] attribute_names, string[] attribute_values, ...) throws MarkupError;
+               public static bool collect_attributes (string element_name, [CCode (array_length = false, array_null_terminated = true)] string[] attribute_names, [CCode (array_length = false, array_null_terminated = true)] string[] attribute_values, ...) throws MarkupError;
        }
 
        /* Key-value file parser */