]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Fix g_dbus_connection_send_message_with_reply binding
authorJürg Billeter <j@bitron.ch>
Wed, 15 Aug 2012 09:50:10 +0000 (11:50 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 15 Aug 2012 09:50:10 +0000 (11:50 +0200)
vapi/gio-2.0.vapi
vapi/metadata/Gio-2.0-custom.vala
vapi/metadata/Gio-2.0.metadata

index 7665870dc188fe055f3bde5c56e928af9447cfaf..76e7f356aaa6a2fc636bc6834d76aed023027101 100644 (file)
@@ -497,7 +497,7 @@ namespace GLib {
                public uint register_subtree (string object_path, GLib.DBusSubtreeVTable vtable, GLib.DBusSubtreeFlags flags, void* user_data, GLib.DestroyNotify user_data_free_func) throws GLib.Error;
                public void remove_filter (uint filter_id);
                public bool send_message (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, out uint32 out_serial) throws GLib.Error;
-               public async GLib.DBusMessage send_message_with_reply (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, out uint32 out_serial = null, GLib.Cancellable? cancellable = null) throws GLib.IOError;
+               public async GLib.DBusMessage send_message_with_reply (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, uint32* out_serial = null, GLib.Cancellable? cancellable = null) throws GLib.IOError;
                public GLib.DBusMessage send_message_with_reply_sync (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, out uint32 out_serial = null, GLib.Cancellable? cancellable = null) throws GLib.IOError;
                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.DBusSignalFlags flags, owned GLib.DBusSignalCallback callback);
index 143ce689c0f0b1995444203c0fa8d42160b8c8e9..f7d2252d83da320357279c5b04ad152c977777a4 100644 (file)
@@ -22,6 +22,7 @@ namespace GLib {
                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;
+               public async GLib.DBusMessage send_message_with_reply (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, uint32 *out_serial = null, GLib.Cancellable? cancellable = null) throws GLib.IOError;
        }
 
        public class DBusMessage : GLib.Object {
@@ -595,4 +596,4 @@ namespace GLib {
        public delegate bool SettingsBindGetMappingShared (GLib.Value value, GLib.Variant variant, void* user_data);
        [CCode (cheader_filename = "gio/gio.h", has_target = false, cname = "GSettingsBindSetMapping")]
        public delegate GLib.Variant SettingsBindSetMappingShared (GLib.Value value, GLib.VariantType expected_type, void* user_data);
-}
\ No newline at end of file
+}
index dd30492bede831d145909ab798ffa7b20599bed9..e401b36657002ca53afac8763019e616bb3c98da 100644 (file)
@@ -325,6 +325,11 @@ StaticResource
 // Need to ask about this... annotated as out, but that seems wrong
 DBus*Info.generate_xml.string_builder out=false
 
+// out_serial must not be out in the async function
+DBusConnection
+  .send_message_with_reply skip
+  .send_message_with_reply_finish skip
+
 // Back compat
 TlsCertificate abstract=false
 DataInputStream