[vala] gio-2.0: Mark ContentType.guess filename parameter to be nullable.



commit 1eeeeb65d513024a667ebd191fa4846b7a0a42e5
Author: Raul Gutierrez Segales <raul gutierrez segales collabora co uk>
Date:   Wed Jan 12 20:34:27 2011 +0000

    gio-2.0: Mark ContentType.guess filename parameter to be nullable.

 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 1d583fa..5376976 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 57fcea4..8441ac9 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -23,6 +23,7 @@ g_content_type_equals parent="ContentType"
 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_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]