From: Rico Tzschichholz Date: Sun, 23 Aug 2020 07:32:47 +0000 (+0200) Subject: glib-2.0: Add GLib.UriParamsIter bindings (since 2.66) X-Git-Tag: 0.49.91~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b2fa1342f6c91bbf3451d108e99dd1c46e522f2;p=thirdparty%2Fvala.git glib-2.0: Add GLib.UriParamsIter bindings (since 2.66) --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index d158122a0..3405700c3 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -4099,6 +4099,22 @@ namespace GLib { FRAGMENT } + [Version (since = "2.66")] + public struct UriParamsIter { + public UriParamsIter (string @params, int length = -1, string separators = "&;", UriParamsFlags flags = 0); + public bool next (out string attribute = null, out string @value = null) throws Error; + } + + [Flags] + [Version (since = "2.66")] + [CCode (cprefix = "G_URI_PARAMS_", has_type_id = false)] + public enum UriParamsFlags { + NONE, + CASE_INSENSITIVE, + WWW_FORM, + PARSE_RELAXED + } + /* Shell-related Utilities */ public errordomain ShellError {