[vala] gio-2.0: Various fixes for g_dbus_* bindings
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gio-2.0: Various fixes for g_dbus_* bindings
- Date: Mon, 28 Jun 2010 19:42:13 +0000 (UTC)
commit 5e33c63762b094b0ca83ceee56d1860ac5debb7f
Author: Jürg Billeter <j bitron ch>
Date: Mon Jun 28 21:38:19 2010 +0200
gio-2.0: Various fixes for g_dbus_* bindings
vapi/gio-2.0.vapi | 33 ++++++++++---------------------
vapi/packages/gio-2.0/gio-2.0.metadata | 14 +++++++++++++
2 files changed, 25 insertions(+), 22 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 7892d26..311400d 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -185,19 +185,14 @@ namespace GLib {
[CCode (cheader_filename = "gio/gio.h")]
public class DBusConnection : GLib.Object, GLib.Initable, GLib.AsyncInitable {
[CCode (type = "void", has_construct_function = false)]
- public DBusConnection (GLib.IOStream stream, string guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver observer, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
+ public async DBusConnection (GLib.IOStream stream, string guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver observer, GLib.Cancellable? cancellable) throws GLib.Error;
public uint add_filter (GLib.DBusMessageFilterFunction filter_function, GLib.DestroyNotify user_data_free_func);
- public void call (string bus_name, string object_path, string interface_name, string method_name, GLib.Variant parameters, GLib.VariantType reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
- public unowned GLib.Variant call_finish (GLib.AsyncResult res) throws GLib.Error;
- public unowned GLib.Variant call_sync (string bus_name, string object_path, string interface_name, string method_name, GLib.Variant parameters, GLib.VariantType reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable) throws GLib.Error;
+ public async GLib.Variant call (string bus_name, string object_path, string interface_name, string method_name, GLib.Variant parameters, GLib.VariantType reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable) throws GLib.Error;
+ public GLib.Variant call_sync (string bus_name, string object_path, string interface_name, string method_name, GLib.Variant parameters, GLib.VariantType reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable) throws GLib.Error;
public void close ();
public bool emit_signal (string destination_bus_name, string object_path, string interface_name, string signal_name, GLib.Variant parameters) throws GLib.Error;
- [CCode (has_construct_function = false)]
- public DBusConnection.finish (GLib.AsyncResult res) throws GLib.Error;
[CCode (type = "void", has_construct_function = false)]
- public DBusConnection.for_address (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver observer, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
- [CCode (has_construct_function = false)]
- public DBusConnection.for_address_finish (GLib.AsyncResult res) throws GLib.Error;
+ public async DBusConnection.for_address (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver observer, GLib.Cancellable? cancellable) throws GLib.Error;
[CCode (has_construct_function = false)]
public DBusConnection.for_address_sync (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver observer, GLib.Cancellable? cancellable) throws GLib.Error;
public GLib.DBusCapabilityFlags get_capabilities ();
@@ -211,9 +206,8 @@ namespace GLib {
public uint register_subtree (string object_path, GLib.DBusSubtreeVTable vtable, GLib.DBusSubtreeFlags flags, GLib.DestroyNotify user_data_free_func) throws GLib.Error;
public void remove_filter (uint filter_id);
public bool send_message (GLib.DBusMessage message, uint32 out_serial) throws GLib.Error;
- public void send_message_with_reply (GLib.DBusMessage message, int timeout_msec, uint32 out_serial, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
- public unowned GLib.DBusMessage send_message_with_reply_finish (GLib.AsyncResult res) throws GLib.Error;
- public unowned GLib.DBusMessage send_message_with_reply_sync (GLib.DBusMessage message, int timeout_msec, uint32 out_serial, GLib.Cancellable? cancellable) throws GLib.Error;
+ public async GLib.DBusMessage send_message_with_reply (GLib.DBusMessage message, int timeout_msec, uint32 out_serial, GLib.Cancellable? cancellable) throws GLib.Error;
+ public GLib.DBusMessage send_message_with_reply_sync (GLib.DBusMessage message, int timeout_msec, uint32 out_serial, GLib.Cancellable? cancellable) throws GLib.Error;
public void set_exit_on_close (bool exit_on_close);
public uint signal_subscribe (string sender, string interface_name, string member, string object_path, string arg0, GLib.DBusSignalCallback callback, GLib.DestroyNotify user_data_free_func);
public void signal_unsubscribe (uint subscription_id);
@@ -367,16 +361,11 @@ namespace GLib {
[CCode (cheader_filename = "gio/gio.h")]
public class DBusProxy : GLib.Object, GLib.Initable, GLib.AsyncInitable {
[CCode (type = "void", has_construct_function = false)]
- public DBusProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo info, string name, string object_path, string interface_name, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
- public void call (string method_name, GLib.Variant parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
- public unowned GLib.Variant call_finish (GLib.AsyncResult res) throws GLib.Error;
- public unowned GLib.Variant call_sync (string method_name, GLib.Variant parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable) throws GLib.Error;
- [CCode (has_construct_function = false)]
- public DBusProxy.finish (GLib.AsyncResult res) throws GLib.Error;
+ public async DBusProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo info, string name, string object_path, string interface_name, GLib.Cancellable? cancellable) throws GLib.Error;
+ public async GLib.Variant call (string method_name, GLib.Variant parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable) throws GLib.Error;
+ public GLib.Variant call_sync (string method_name, GLib.Variant parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable) throws GLib.Error;
[CCode (type = "void", has_construct_function = false)]
- public DBusProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo info, string name, string object_path, string interface_name, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
- [CCode (has_construct_function = false)]
- public DBusProxy.for_bus_finish (GLib.AsyncResult res) throws GLib.Error;
+ public async DBusProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo info, string name, string object_path, string interface_name, GLib.Cancellable? cancellable) throws GLib.Error;
[CCode (has_construct_function = false)]
public DBusProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo info, string name, string object_path, string interface_name, GLib.Cancellable? cancellable) throws GLib.Error;
public unowned GLib.Variant get_cached_property (string property_name);
@@ -2257,7 +2246,7 @@ namespace GLib {
[CCode (cname = "g_dbus_address_get_for_bus_sync", cheader_filename = "gio/gio.h")]
public static unowned string g_dbus_address_get_for_bus_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable) throws GLib.Error;
[CCode (cname = "g_dbus_address_get_stream", cheader_filename = "gio/gio.h")]
- public static void g_dbus_address_get_stream (string address, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
+ public static async void g_dbus_address_get_stream (string address, GLib.Cancellable? cancellable);
[CCode (cname = "g_dbus_address_get_stream_finish", cheader_filename = "gio/gio.h")]
public static unowned GLib.IOStream g_dbus_address_get_stream_finish (GLib.AsyncResult res, string out_guid) throws GLib.Error;
[CCode (cname = "g_dbus_address_get_stream_sync", 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 8a0dd55..59f3b6f 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -22,6 +22,20 @@ g_data_input_stream_read_until nullable="1" transfer_ownership="1"
g_data_input_stream_read_until.length is_out="1"
g_data_input_stream_read_until_finish nullable="1" transfer_ownership="1"
g_data_input_stream_read_until_finish.length is_out="1"
+g_dbus_address_get_stream async="1"
+g_dbus_connection_call async="1"
+g_dbus_connection_call_finish transfer_ownership="1"
+g_dbus_connection_call_sync transfer_ownership="1"
+g_dbus_connection_new async="1"
+g_dbus_connection_new_for_address async="1"
+g_dbus_connection_send_message_with_reply async="1"
+g_dbus_connection_send_message_with_reply_finish transfer_ownership="1"
+g_dbus_connection_send_message_with_reply_sync transfer_ownership="1"
+g_dbus_proxy_call async="1"
+g_dbus_proxy_call_finish transfer_ownership="1"
+g_dbus_proxy_call_sync transfer_ownership="1"
+g_dbus_proxy_new async="1"
+g_dbus_proxy_new_for_bus async="1"
g_drive_eject async="1"
g_drive_eject_with_operation async="1"
g_drive_get_volumes type_arguments="Volume" transfer_ownership="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]