From 3b2fa1342f6c91bbf3451d108e99dd1c46e522f2 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Sun, 23 Aug 2020 09:32:47 +0200 Subject: [PATCH] glib-2.0: Add GLib.UriParamsIter bindings (since 2.66) --- vapi/glib-2.0.vapi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 { -- 2.47.2