diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-12-11 09:51:51 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-12-11 14:18:39 +0100 |
commit | 89eba43149757c33b132af5a840fb9480341719e (patch) | |
tree | 4cb0dc90a6bb3b3f66dc61385a126c08a06b4765 | |
parent | 013bb64cc8ef97326db1a44affcf420b0bc941cf (diff) | |
download | vala-89eba43149757c33b132af5a840fb9480341719e.tar.gz |
vapi: Regenerate GIR-based bindings to fix non-standard async methods
See https://gitlab.gnome.org/GNOME/vala/issues/709
-rw-r--r-- | vapi/gtk+-4.0.vapi | 2 | ||||
-rw-r--r-- | vapi/libgeoclue-2.0.vapi | 1 | ||||
-rw-r--r-- | vapi/udisks2.vapi | 12 |
3 files changed, 15 insertions, 0 deletions
diff --git a/vapi/gtk+-4.0.vapi b/vapi/gtk+-4.0.vapi index 843207cd3..3b78dd3da 100644 --- a/vapi/gtk+-4.0.vapi +++ b/vapi/gtk+-4.0.vapi @@ -4724,6 +4724,7 @@ namespace Gdk { public unowned Gdk.Display get_display (); public unowned Gdk.ContentFormats get_formats (); public bool is_local (); + [CCode (async_result_pos = 2.1)] public async GLib.InputStream read_async (string mime_types, int io_priority, GLib.Cancellable? cancellable, out unowned string out_mime_type) throws GLib.Error; public async string? read_text_async (GLib.Cancellable? cancellable) throws GLib.Error; public async Gdk.Texture? read_texture_async (GLib.Cancellable? cancellable) throws GLib.Error; @@ -5034,6 +5035,7 @@ namespace Gdk { public unowned Gdk.Drag? get_drag (); public unowned Gdk.ContentFormats get_formats (); public unowned Gdk.Surface get_surface (); + [CCode (async_result_pos = 2.1)] public async GLib.InputStream? read_async ([CCode (array_length = false, array_null_terminated = true)] string[] mime_types, int io_priority, GLib.Cancellable? cancellable, out string out_mime_type) throws GLib.Error; public async string? read_text_async (GLib.Cancellable? cancellable) throws GLib.Error; public async unowned GLib.Value? read_value_async (GLib.Type type, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error; diff --git a/vapi/libgeoclue-2.0.vapi b/vapi/libgeoclue-2.0.vapi index c1c88f3af..34b1cb512 100644 --- a/vapi/libgeoclue-2.0.vapi +++ b/vapi/libgeoclue-2.0.vapi @@ -119,6 +119,7 @@ namespace GClue { public interface Manager : GLib.Object { public async bool call_add_agent (string arg_id, GLib.Cancellable? cancellable) throws GLib.Error; public bool call_add_agent_sync (string arg_id, GLib.Cancellable? cancellable = null) throws GLib.Error; + [CCode (async_result_pos = 2.1)] public async bool call_get_client (GLib.Cancellable? cancellable, out string out_client) throws GLib.Error; public bool call_get_client_sync (out string out_client, GLib.Cancellable? cancellable = null) throws GLib.Error; public void complete_add_agent (owned GLib.DBusMethodInvocation invocation); diff --git a/vapi/udisks2.vapi b/vapi/udisks2.vapi index 1c486a00c..61ea8868b 100644 --- a/vapi/udisks2.vapi +++ b/vapi/udisks2.vapi @@ -316,12 +316,16 @@ namespace UDisks { public bool call_add_configuration_item_sync (GLib.Variant arg_item, GLib.Variant arg_options, GLib.Cancellable? cancellable = null) throws GLib.Error; public async bool call_format (string arg_type, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; public bool call_format_sync (string arg_type, GLib.Variant arg_options, GLib.Cancellable? cancellable = null) throws GLib.Error; + [CCode (async_result_pos = 2.1)] public async bool call_get_secret_configuration (GLib.Variant arg_options, GLib.Cancellable? cancellable, out GLib.Variant out_configuration) throws GLib.Error; public bool call_get_secret_configuration_sync (GLib.Variant arg_options, out GLib.Variant out_configuration, GLib.Cancellable? cancellable = null) throws GLib.Error; + [CCode (async_result_pos = 3.1)] public async bool call_open_for_backup (GLib.Variant arg_options, GLib.UnixFDList? fd_list, GLib.Cancellable? cancellable, out GLib.Variant out_fd, out GLib.UnixFDList out_fd_list) throws GLib.Error; public bool call_open_for_backup_sync (GLib.Variant arg_options, GLib.UnixFDList? fd_list, out GLib.Variant out_fd, out GLib.UnixFDList out_fd_list, GLib.Cancellable? cancellable = null) throws GLib.Error; + [CCode (async_result_pos = 3.1)] public async bool call_open_for_benchmark (GLib.Variant arg_options, GLib.UnixFDList? fd_list, GLib.Cancellable? cancellable, out GLib.Variant out_fd, out GLib.UnixFDList out_fd_list) throws GLib.Error; public bool call_open_for_benchmark_sync (GLib.Variant arg_options, GLib.UnixFDList? fd_list, out GLib.Variant out_fd, out GLib.UnixFDList out_fd_list, GLib.Cancellable? cancellable = null) throws GLib.Error; + [CCode (async_result_pos = 3.1)] public async bool call_open_for_restore (GLib.Variant arg_options, GLib.UnixFDList? fd_list, GLib.Cancellable? cancellable, out GLib.Variant out_fd, out GLib.UnixFDList out_fd_list) throws GLib.Error; public bool call_open_for_restore_sync (GLib.Variant arg_options, GLib.UnixFDList? fd_list, out GLib.Variant out_fd, out GLib.UnixFDList out_fd_list, GLib.Cancellable? cancellable = null) throws GLib.Error; public async bool call_remove_configuration_item (GLib.Variant arg_item, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; @@ -488,6 +492,7 @@ namespace UDisks { } [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_drive_ata_get_type ()")] public interface DriveAta : GLib.Object { + [CCode (async_result_pos = 2.1)] public async bool call_pm_get_state (GLib.Variant arg_options, GLib.Cancellable? cancellable, out uint8 out_state) throws GLib.Error; public bool call_pm_get_state_sync (GLib.Variant arg_options, out uint8 out_state, GLib.Cancellable? cancellable = null) throws GLib.Error; public async bool call_pm_standby (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; @@ -496,6 +501,7 @@ namespace UDisks { public bool call_pm_wakeup_sync (GLib.Variant arg_options, GLib.Cancellable? cancellable = null) throws GLib.Error; public async bool call_security_erase_unit (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; public bool call_security_erase_unit_sync (GLib.Variant arg_options, GLib.Cancellable? cancellable = null) throws GLib.Error; + [CCode (async_result_pos = 2.1)] public async bool call_smart_get_attributes (GLib.Variant arg_options, GLib.Cancellable? cancellable, out GLib.Variant out_attributes) throws GLib.Error; public bool call_smart_get_attributes_sync (GLib.Variant arg_options, out GLib.Variant out_attributes, GLib.Cancellable? cancellable = null) throws GLib.Error; public async bool call_smart_selftest_abort (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; @@ -591,6 +597,7 @@ namespace UDisks { public bool call_change_passphrase_sync (string arg_passphrase, string arg_new_passphrase, GLib.Variant arg_options, GLib.Cancellable? cancellable = null) throws GLib.Error; public async bool call_lock (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; public bool call_lock_sync (GLib.Variant arg_options, GLib.Cancellable? cancellable = null) throws GLib.Error; + [CCode (async_result_pos = 2.1)] public async bool call_unlock (string arg_passphrase, GLib.Variant arg_options, GLib.Cancellable? cancellable, out string out_cleartext_device) throws GLib.Error; public bool call_unlock_sync (string arg_passphrase, GLib.Variant arg_options, out string out_cleartext_device, GLib.Cancellable? cancellable = null) throws GLib.Error; public void complete_change_passphrase (owned GLib.DBusMethodInvocation invocation); @@ -606,6 +613,7 @@ namespace UDisks { } [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_filesystem_get_type ()")] public interface Filesystem : GLib.Object { + [CCode (async_result_pos = 2.1)] public async bool call_mount (GLib.Variant arg_options, GLib.Cancellable? cancellable, out string out_mount_path) throws GLib.Error; public bool call_mount_sync (GLib.Variant arg_options, out string out_mount_path, GLib.Cancellable? cancellable = null) throws GLib.Error; public async bool call_set_label (string arg_label, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; @@ -745,8 +753,10 @@ namespace UDisks { public interface Manager : GLib.Object { public async bool call_enable_modules (bool arg_enable, GLib.Cancellable? cancellable) throws GLib.Error; public bool call_enable_modules_sync (bool arg_enable, GLib.Cancellable? cancellable = null) throws GLib.Error; + [CCode (async_result_pos = 3.1)] public async bool call_loop_setup (GLib.Variant arg_fd, GLib.Variant arg_options, GLib.UnixFDList? fd_list, GLib.Cancellable? cancellable, out string out_resulting_device, out GLib.UnixFDList out_fd_list) throws GLib.Error; public bool call_loop_setup_sync (GLib.Variant arg_fd, GLib.Variant arg_options, GLib.UnixFDList? fd_list, out string out_resulting_device, out GLib.UnixFDList out_fd_list, GLib.Cancellable? cancellable = null) throws GLib.Error; + [CCode (async_result_pos = 2.1)] [Version (since = "2.0.0")] public async bool call_mdraid_create (string arg_blocks, string arg_level, string arg_name, uint64 arg_chunk, GLib.Variant arg_options, GLib.Cancellable? cancellable, out string out_resulting_array) throws GLib.Error; [Version (since = "2.0.0")] @@ -851,7 +861,9 @@ namespace UDisks { } [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_partition_table_get_type ()")] public interface PartitionTable : GLib.Object { + [CCode (async_result_pos = 2.1)] public async bool call_create_partition (uint64 arg_offset, uint64 arg_size, string arg_type, string arg_name, GLib.Variant arg_options, GLib.Cancellable? cancellable, out string out_created_partition) throws GLib.Error; + [CCode (async_result_pos = 2.1)] public async bool call_create_partition_and_format (uint64 arg_offset, uint64 arg_size, string arg_type, string arg_name, GLib.Variant arg_options, string arg_format_type, GLib.Variant arg_format_options, GLib.Cancellable? cancellable, out string out_created_partition) throws GLib.Error; public bool call_create_partition_and_format_sync (uint64 arg_offset, uint64 arg_size, string arg_type, string arg_name, GLib.Variant arg_options, string arg_format_type, GLib.Variant arg_format_options, out string out_created_partition, GLib.Cancellable? cancellable = null) throws GLib.Error; public bool call_create_partition_sync (uint64 arg_offset, uint64 arg_size, string arg_type, string arg_name, GLib.Variant arg_options, out string out_created_partition, GLib.Cancellable? cancellable = null) throws GLib.Error; |