diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-08-23 10:02:52 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-08-23 10:52:30 +0200 |
commit | d07b275c3e79ad31f8d2fc1371ace12f8cf25095 (patch) | |
tree | fb94e3ca39f130e6009b89cc69d213793db22162 /vapi/glib-2.0.vapi | |
parent | 3b2fa1342f6c91bbf3451d108e99dd1c46e522f2 (diff) | |
download | vala-d07b275c3e79ad31f8d2fc1371ace12f8cf25095.tar.gz |
glib-2.0: Update GLib.Uri API (since 2.66)
Diffstat (limited to 'vapi/glib-2.0.vapi')
-rw-r--r-- | vapi/glib-2.0.vapi | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 3405700c3..ef22a83d9 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -4040,8 +4040,8 @@ namespace GLib { [Version (since = "2.66")] public UriFlags get_flags (); - [Version (since = "2.16")] - public static string? parse_params (string uri, size_t length, char separator, bool case_insensitive); + [Version (since = "2.66")] + public static string? parse_params (string uri, size_t length = -1, string separators = "&;", UriParamsFlags flags = 0) throws UriError; [Version (since = "2.16")] public static string? parse_scheme (string uri); [Version (since = "2.66")] @@ -4053,7 +4053,7 @@ namespace GLib { [Version (since = "2.16")] public static string? unescape_segment (string? escaped_string, string? escaped_string_end, string? illegal_characters = null); [Version (since = "2.66")] - public static Bytes? unescape_bytes (string escaped_string, size_t length); + public static Bytes? unescape_bytes (string escaped_string, size_t length = -1, string? illegal_characters = null) throws UriError; [Version (since = "2.66")] public static string? escape_bytes ([CCode (array_length_type = "gsize")] uint8[] unescaped, string? reserved_chars_allowed = null); [Version (since = "2.6")] @@ -4063,7 +4063,7 @@ namespace GLib { [Version (since = "2.66")] public errordomain UriError { - MISC, + FAILED, BAD_SCHEME, BAD_USER, BAD_PASSWORD, @@ -4081,11 +4081,14 @@ namespace GLib { [CCode (cprefix = "G_URI_FLAGS_", has_type_id = false)] public enum UriFlags { NONE, - PARSE_STRICT, + PARSE_RELAXED, HAS_PASSWORD, HAS_AUTH_PARAMS, ENCODED, - NON_DNS + NON_DNS, + ENCODED_QUERY, + ENCODED_PATH, + ENCODED_FRAGMENT } [Flags] @@ -4096,6 +4099,7 @@ namespace GLib { USERINFO, PASSWORD, AUTH_PARAMS, + QUERY, FRAGMENT } |