[vala/switch-to-gir-gio] gio-2.0: Switch to gir.
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/switch-to-gir-gio] gio-2.0: Switch to gir.
- Date: Sat, 8 Jan 2011 23:25:39 +0000 (UTC)
commit 81337e0dfddcc6271dbe7f19dc0ac2d31ec1a9f1
Author: Luca Bruno <lucabru src gnome org>
Date: Sun Dec 26 11:57:33 2010 +0100
gio-2.0: Switch to gir.
vapi/metadata/Gio-2.0.metadata | 111 +++++++++++++++++++++++++++++++++++++
vapi/metadata/gio-2.0-custom.vala | 109 ++++++++++++++++++++++++++++++++++++
2 files changed, 220 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..bbadea3
--- /dev/null
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -0,0 +1,111 @@
+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
+Application.run.argv default=null
+BufferedInputStream.peek.offset default=0
+DBusConnection
+ .new_sync.observer default=null
+ .new_for_address_sync.observer default=null
+ .call.timeout_msec default=-1
+ .call_sync.timeout_msec default=-1
+ .send_message.out_serial default=null
+ .send_message_with_reply.out_serial default=null
+ .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
+app_info_launch_default_for_uri.launch_context nullable
+AppLaunchContext
+ .get_display.files type_arguments="File"
+ .get_startup_notify_id.files type_arguments="File"
+Application
+ .run.argv array nullable array_length_idx=0
+ ::open.object type="GLib.File[]" array_length_idx=1
+ApplicationCommandLine.get_platform_data nullable
+AsyncReadyCallback.source_object nullable
+BufferedInputStream
+ .peek.buffer type="uint8[]" array_length_idx=2
+ .peek_buffer type="unowned uint8[]" array_length_idx=0
+Converter.convert
+ .inbuf type="uint8[]" array_length_idx=1
+ .outbuf type="uint8[]" array_length_idx=3
+ .bytes_read out
+ .bytes_written out
+DBus*
+ .annotations array
+ .signals array
+ .properties array
+ .methods array
+ .args array
+ .in_args array
+ .out_args array
+ .nodes array
+ .interfaces array
+Credentials.get_native skip=false
+DBusConnection
+ .new_sync.observer nullable
+ .new_for_address.observer nullable
+ .new_for_address_sync.observer nullable
+ .call.parameters nullable
+ .call.reply_type nullable
+ .call_sync.parameters nullable
+ .call_sync.reply_type nullable
+ .emit_signal.destination_bus_name nullable
+ .emit_signal.parameters nullable
+ .send_message.out_serial out nullable owned
+ .send_message_with_reply.out_serial out nullable owned
+ .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
+ .new_from_blob.blob array array_length_idx=1
+ .get_header_fields array
+ .to_blob array array_length_idx=0
+FileInfo
+ .get_modification_time.result out
+ .set_attribute_stringv.attr_value array
+FileMonitor::changed.p0 nullable
+DBusServer.new_sync.observer nullable
+InetAddress
+ .new_from_bytes.bytes array
+ .to_bytes array
+InputStream.read vfunc_name="read_fn"
+ .buffer type="uint8[]" array_length_idx=1
+InputStream.read_all
+ .buffer type="uint8[]" array_length_idx=1
+ .bytes_read out
+InputStream.read_async.buffer type="uint8[]" array_length_idx=1
+MemoryInputStream
+ .add_data.data type="owned uint8[]" array_length_idx=1
+ .add_data.destroy nullable
+ .new_from_data.data type="owned uint8[]" array_length_idx=1
+ .new_from_data.destroy nullable
+MemoryOutputStream.steal_data type="uint8[]"
+SimpleAsyncResult.new
+ .source_object nullable
+ .callback scope=null
+SimpleAsyncResult.new_from_error.callback scope=null
+SocketControlMessage
+ .serialize.data type="uint8[]"
+ .deserialize.data type="uint8[]" array_length_idx=2
+ .deserialize.data type="uint8[]"
+SocketListener
+ .add_inet_port.source_object nullable
+ .add_socket.source_object nullable
+SocketService::incoming.p0 nullable
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]