[vala] Add g_file_hash and g_file_equal as HashFunc and EqualFunc



commit 627170831cbf22e2aabf171dd2ed759dd7221652
Author: Jaap A. Haitsma <jaap haitsma org>
Date:   Wed Jul 1 07:51:23 2009 +0200

    Add g_file_hash and g_file_equal as HashFunc and EqualFunc
    
    Fixes bug #587412
    Patch by Jens Georg <mail jensge org>

 vapi/gio-2.0.vapi                         |    5 ++++-
 vapi/packages/gio-2.0/gio-2.0-custom.vala |    5 +++++
 2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index a6c907f..9f51256 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -584,7 +584,6 @@ namespace GLib {
 		[CCode (type = "GIcon*", has_construct_function = false)]
 		public ThemedIcon.with_default_fallbacks (string iconname);
 		public string name { construct; }
-		[CCode (array_length = false, array_null_terminated = true)]
 		public string[] names { get; construct; }
 		[NoAccessorMethod]
 		public bool use_default_fallbacks { get; construct; }
@@ -1072,6 +1071,10 @@ namespace GLib {
 	[CCode (cheader_filename = "gio/gio.h", has_target = false)]
 	public delegate void SimpleAsyncThreadFunc (GLib.SimpleAsyncResult res, GLib.Object object, GLib.Cancellable cancellable);
 	[CCode (cheader_filename = "gio/gio.h")]
+	public static GLib.EqualFunc file_equal;
+	[CCode (cheader_filename = "gio/gio.h")]
+	public static GLib.HashFunc file_hash;
+	[CCode (cheader_filename = "gio/gio.h")]
 	public const string FILE_ATTRIBUTE_ACCESS_CAN_DELETE;
 	[CCode (cheader_filename = "gio/gio.h")]
 	public const string FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE;
diff --git a/vapi/packages/gio-2.0/gio-2.0-custom.vala b/vapi/packages/gio-2.0/gio-2.0-custom.vala
index 63956c4..42ab86c 100644
--- a/vapi/packages/gio-2.0/gio-2.0-custom.vala
+++ b/vapi/packages/gio-2.0/gio-2.0-custom.vala
@@ -33,5 +33,10 @@ namespace GLib {
 		public abstract GLib.FileMonitor monitor_directory (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
 		public abstract GLib.FileMonitor monitor_file (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
 	}
+
+	[CCode (cname = "g_file_hash", cheader_filename = "gio/gio.h")]
+	public static GLib.HashFunc file_hash;
+	[CCode (cname = "g_file_equal", cheader_filename = "gio/gio.h")]
+	public static GLib.EqualFunc file_equal;
 }
 



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