[vala/staging] glib-2.0: Add GLib.UriParamsIter bindings (since 2.66)



commit 3b2fa1342f6c91bbf3451d108e99dd1c46e522f2
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Aug 23 09:32:47 2020 +0200

    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 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]