[vala] glib-2.0: annotate nullable GLib.Uri arguments and return values



commit d634eb6c71d40deed4822a770cca054de8eac8f9
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date:   Wed May 23 02:24:31 2012 +0200

    glib-2.0: annotate nullable GLib.Uri arguments and return values
    
    g_uri_*() functions can take null values, return null as a normal
    operation, ex: parse_scheme() returns null when no scheme...
    
    https://bugzilla.gnome.org/show_bug.cgi?id=676609

 vapi/glib-2.0.vapi |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index b1f7a9a..e6a5ba4 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -3102,10 +3102,10 @@ namespace GLib {
 		public const string RESERVED_CHARS_GENERIC_DELIMITERS;
 		public const string RESERVED_CHARS_SUBCOMPONENT_DELIMITERS;
 
-		public static string parse_scheme (string uri);
-		public static string escape_string (string unescaped, string reserved_chars_allowed, bool allow_utf8);
-		public static string unescape_string (string escaped_string, string? illegal_characters = null);
-		public static string unescape_segment (string escaped_string, string escaped_string_end, string? illegal_characters = null);
+		public static string? parse_scheme (string uri);
+		public static string escape_string (string unescaped, string? reserved_chars_allowed = null, bool allow_utf8 = true);
+		public static string? unescape_string (string escaped_string, string? illegal_characters = null);
+		public static string? unescape_segment (string? escaped_string, string? escaped_string_end, string? illegal_characters = null);
 		[CCode (array_length = false, array_null_terminated = true)]
 		public static string[] list_extract_uris (string uri_list);
 	}



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