]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Add GLib.UriParamsIter bindings (since 2.66)
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 23 Aug 2020 07:32:47 +0000 (09:32 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 23 Aug 2020 08:52:30 +0000 (10:52 +0200)
vapi/glib-2.0.vapi

index d158122a0dcb50d3c71ea8a9c9ed9e20d6816438..3405700c33ab77fe837ef1e16db799b42c4bd120 100644 (file)
@@ -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 {