[vala/0.12] gio-2.0: Mark data parameter of ContentType.guess as nullable



commit c398dc5dccab69294b4d89638a2192888d615833
Author: Luca Bruno <lucabru src gnome org>
Date:   Sat Apr 16 09:29:41 2011 +0200

    gio-2.0: Mark data parameter of ContentType.guess as nullable
    
    Fixes bug 647804.

 vapi/gio-2.0.vapi                      |    2 +-
 vapi/packages/gio-2.0/gio-2.0.metadata |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 28311e6..d80fab6 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -40,7 +40,7 @@ namespace GLib {
 		[CCode (cheader_filename = "gio/gio.h")]
 		public static string get_mime_type (string type);
 		[CCode (cheader_filename = "gio/gio.h")]
-		public static string guess (string? filename, uchar[] data, out bool result_uncertain);
+		public static string guess (string? filename, uchar[]? data, out bool result_uncertain);
 		[CCode (cheader_filename = "gio/gio.h")]
 		public static string guess_for_tree (GLib.File root);
 		[CCode (cheader_filename = "gio/gio.h")]
diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata
index 34f1e23..95ba8d0 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -24,6 +24,7 @@ g_content_type_from_mime_type parent="ContentType" transfer_ownership="1"
 g_content_type_get_* parent="ContentType" transfer_ownership="1"
 g_content_type_guess* parent="ContentType" transfer_ownership="1"
 g_content_type_guess.filename nullable="1"
+g_content_type_guess.data nullable="1"
 g_content_type_guess.data_size hidden="1"
 g_content_type_guess.result_uncertain is_out="1"
 g_content_type_is_* parent="ContentType"



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