From: Jens Georg Date: Thu, 22 Sep 2016 18:01:19 +0000 (+0200) Subject: glib-2.0: Fix binding of Markup.collect_attributes X-Git-Tag: 0.34.1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34f3b85a17d00fde454875fc2cf556876f326a6f;p=thirdparty%2Fvala.git glib-2.0: Fix binding of Markup.collect_attributes Array parameters don't have an associcated length parameter but are null-terminated. https://bugzilla.gnome.org/show_bug.cgi?id=771790 --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index b15d9a66d..501df3404 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -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 */