[vala/switch-to-gir-gio: 40/40] gio-gir: Initial commit.



commit f0d29709dd6430b2202833127609926b1346283d
Author: Luca Bruno <lucabru src gnome org>
Date:   Sun Dec 26 11:57:33 2010 +0100

    gio-gir: Initial commit.

 vapi/metadata/Gio-2.0.metadata    |   74 +++++++++++++++++++++++++
 vapi/metadata/gio-2.0-custom.vala |  109 +++++++++++++++++++++++++++++++++++++
 2 files changed, 183 insertions(+), 0 deletions(-)
---
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
new file mode 100644
index 0000000..45bce55
--- /dev/null
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -0,0 +1,74 @@
+Gio name="GLib"
+content_type_* parent="GLib.ContentType" name="content_type_(.*)"
+*.cancellable nullable default=null
+*.*.cancellable nullable default=null
+*.*.io_priority default = GLib.Priority.DEFAULT
+BufferedInputStream.peek.offset default=0
+DBusConnection.new_sync.observer default=null
+DBusConnection.new_for_address_sync.observer default=null
+DBusConnection.call.timeout_msec default=-1
+DBusConnection.call_sync.timeout_msec default=-1
+DBusConnection.send_message.out_serial default=null
+DBusConnection.send_message_with_reply.out_serial default=null
+DBusConnection.send_message_with_reply_sync.out_serial default=null
+bus_get_finish skip
+DBusServer.new_sync.observer default=null
+
+// Possible GI bugs
+FileIOStream.seek.cancellable nullable
+FileInputStream.seek.cancellable nullable
+FileOutputStream.seek.cancellable nullable
+
+// Re-check these
+SimpleAsyncResult.new_take_error skip
+
+// Forward upstream
+AppLaunchContext
+	.get_display.files type_arguments="File"
+	.get_startup_notify_id.files type_arguments="File"
+ApplicationCommandLine.get_platform_data nullable
+AsyncReadyCallback.source_object nullable
+BufferedInputStream.peek_buffer type="unowned uint8[]" array_length_idx=0
+DBus*.annotations array
+DBus*.signals array
+DBus*.properties array
+DBus*.methods array
+DBus*.args array
+DBus*.in_args array
+DBus*.out_args array
+DBus*.nodes array
+DBus*.interfaces array
+Credentials.get_native skip=false
+DBusConnection.new_sync.observer nullable
+DBusConnection.new_for_address_sync.observer nullable
+DBusConnection.call.parameters nullable
+DBusConnection.call.reply_type nullable
+DBusConnection.call_sync.parameters nullable
+DBusConnection.call_sync.reply_type nullable
+DBusConnection.emit_signal.destination_bus_name nullable
+DBusConnection.emit_signal.parameters nullable
+DBusConnection.send_message.out_serial out nullable owned
+DBusConnection.send_message_with_reply.out_serial out nullable owned
+DBusConnection.send_message_with_reply_sync.out_serial out nullable owned
+DBusConnection.signal_subscribe
+	.sender nullable
+	.interface_name nullable
+	.member nullable
+	.object_path nullable
+	.arg0 nullable
+DBusMessage.bytes_needed.blob array array_length_idx=1
+DBusMessage.new_from_blob.blob array array_length_idx=1
+DBusMessage.get_header_fields array
+FileInfo.get_modification_time.result out
+FileInfo.set_attribute_stringv.attr_value array
+FileMonitor::changed.p0 nullable
+DBusServer.new_sync.observer nullable
+InputStream.read vfunc_name="read_fn"
+	.buffer type="uint8[]" array_length_idx=1
+InputStream.read_all
+	.buffer type="uint8[]" array_length_idx=1
+InputStream.read_all
+	.bytes_read out
+InputStream.read_async.buffer type="uint8[]" array_length_idx=1
+SimpleAsyncResult.new.callback scope=null
+SimpleAsyncResult.new_from_error.callback scope=null
diff --git a/vapi/metadata/gio-2.0-custom.vala b/vapi/metadata/gio-2.0-custom.vala
new file mode 100644
index 0000000..28aef3b
--- /dev/null
+++ b/vapi/metadata/gio-2.0-custom.vala
@@ -0,0 +1,109 @@
+/* gtk+-2.0.vala
+ *
+ * Copyright (C) 2008  Jared Moore
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
+ *
+ * Author:
+ * 	Jared Moore  <jaredm gmx com>
+ */
+
+namespace GLib {
+	[Compact]
+	[CCode (cname = "GIOExtension")]
+	public class IOExtension {
+		public extern Type get_type ();
+	}
+
+	[CCode (cname = "GFile")]
+	public interface File : Object {
+		[CCode (vfunc_name = "monitor_dir")]
+		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;
+	}
+
+	[Compact]
+	[CCode (cname = "GSource", ref_function = "g_source_ref", unref_function = "g_source_unref")]
+	public class SocketSource : GLib.Source {
+		[CCode (cname = "g_source_set_callback")]
+		public void set_callback ([CCode (type = "GSourceFunc")] owned SocketSourceFunc func);
+	}
+
+	[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;
+
+	[CCode (cname = "GApplication")]
+	public class Application {
+		[CCode (cname = "g_application_quit_with_data")]
+		public bool quit (GLib.Variant? platform_data = null);
+	}
+
+	[CCode (cheader_filename = "gio/gio.h")]
+	namespace Bus {
+		public async GLib.DBusConnection get (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.IOError;
+		public GLib.DBusConnection get_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.IOError;
+		public async T get_proxy<T> (GLib.BusType bus_type, string name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
+		public T get_proxy_sync<T> (GLib.BusType bus_type, string name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
+		[CCode (cname = "g_bus_own_name_with_closures")]
+		public uint own_name (GLib.BusType bus_type, string name, GLib.BusNameOwnerFlags flags, [CCode (type = "GClosure*")] owned GLib.BusAcquiredCallback bus_acquired_handler, [CCode (type = "GClosure*")] owned GLib.BusNameAcquiredCallback name_acquired_handler, [CCode (type = "GClosure*")] owned GLib.BusNameLostCallback name_lost_handler);
+		[CCode (cname = "g_bus_own_name_on_connection_with_closures")]
+		public uint own_name_on_connection (GLib.DBusConnection connection, string name, GLib.BusNameOwnerFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAcquiredCallback name_acquired_handler, [CCode (type = "GClosure*")] owned GLib.BusNameLostCallback name_lost_handler);
+		public void unown_name (uint owner_id);
+		public void unwatch_name (uint watcher_id);
+		[CCode (cname = "g_bus_watch_name_with_closures")]
+		public uint watch_name (GLib.BusType bus_type, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback name_appeared_handler, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback name_vanished_handler);
+		[CCode (cname = "g_bus_watch_name_on_connection_with_closures")]
+		public uint watch_name_on_connection (GLib.DBusConnection connection, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback name_appeared_handler, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback name_vanished_handler);
+	}
+
+	[CCode (cname = "GDBusConnection")]
+	public class DBusConnection {
+		public async T get_proxy<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
+		public T get_proxy_sync<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
+		public uint register_object<T> (string object_path, T object) throws GLib.IOError;
+	}
+	[Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.can_be_executable")]
+	[CCode (cname = "g_content_type_can_be_executable", cheader_filename = "gio/gio.h")]
+	public static bool g_content_type_can_be_executable (string type);
+	[Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.equals")]
+	[CCode (cname = "g_content_type_equals", cheader_filename = "gio/gio.h")]
+	public static bool g_content_type_equals (string type1, string type2);
+	[Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.from_mime_type")]
+	[CCode (cname = "g_content_type_from_mime_type", cheader_filename = "gio/gio.h")]
+	public static string g_content_type_from_mime_type (string mime_type);
+	[Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.get_description")]
+	[CCode (cname = "g_content_type_get_description", cheader_filename = "gio/gio.h")]
+	public static string g_content_type_get_description (string type);
+	[Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.get_icon")]
+	[CCode (cname = "g_content_type_get_icon", cheader_filename = "gio/gio.h")]
+	public static GLib.Icon g_content_type_get_icon (string type);
+	[Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.get_mime_type")]
+	[CCode (cname = "g_content_type_get_mime_type", cheader_filename = "gio/gio.h")]
+	public static string g_content_type_get_mime_type (string type);
+	[Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.guess")]
+	[CCode (cname = "g_content_type_guess", cheader_filename = "gio/gio.h")]
+	public static string g_content_type_guess (string filename, uchar[] data, out bool result_uncertain);
+	[Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.guess_for_tree")]
+	[CCode (cname = "g_content_type_guess_for_tree", cheader_filename = "gio/gio.h")]
+	public static string g_content_type_guess_for_tree (GLib.File root);
+	[Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.is_a")]
+	[CCode (cname = "g_content_type_is_a", cheader_filename = "gio/gio.h")]
+	public static bool g_content_type_is_a (string type, string supertype);
+	[Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.is_unknown")]
+	[CCode (cname = "g_content_type_is_unknown", cheader_filename = "gio/gio.h")]
+	public static bool g_content_type_is_unknown (string type);
+}



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