]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libgeoclue-2.0: Fix Simple.with_thresholds() contructor binding
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 14 Jan 2022 13:37:12 +0000 (14:37 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 17 Feb 2022 08:29:49 +0000 (09:29 +0100)
vapi/libgeoclue-2.0.vapi
vapi/metadata/Geoclue-2.0.metadata [new file with mode: 0644]

index 38e95f19e8dc95200c6c74b99caf1558e6bbc595..2fb28bb7da3c671b6d50b59f97d5dea8771fde37 100644 (file)
@@ -60,9 +60,10 @@ namespace GClue {
                public async Simple (string desktop_id, GClue.AccuracyLevel accuracy_level, GLib.Cancellable? cancellable) throws GLib.Error;
                public unowned GClue.ClientProxy get_client ();
                public unowned GClue.Location get_location ();
-               public static async void new_with_thresholds (string desktop_id, GClue.AccuracyLevel accuracy_level, uint time_threshold, uint distance_threshold, GLib.Cancellable? cancellable);
                [CCode (has_construct_function = false)]
                public Simple.sync (string desktop_id, GClue.AccuracyLevel accuracy_level, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               [CCode (cname = "gclue_simple_new_with_thresholds", finish_name = "gclue_simple_new_finish", has_construct_function = false)]
+               public async Simple.with_thresholds (string desktop_id, GClue.AccuracyLevel accuracy_level, uint time_threshold, uint distance_threshold, GLib.Cancellable? cancellable) throws GLib.Error;
                [CCode (has_construct_function = false)]
                public Simple.with_thresholds_sync (string desktop_id, GClue.AccuracyLevel accuracy_level, uint time_threshold, uint distance_threshold, GLib.Cancellable? cancellable = null) throws GLib.Error;
                [NoAccessorMethod]
diff --git a/vapi/metadata/Geoclue-2.0.metadata b/vapi/metadata/Geoclue-2.0.metadata
new file mode 100644 (file)
index 0000000..bbb932b
--- /dev/null
@@ -0,0 +1,2 @@
+Simple
+       .new_with_thresholds finish_name="gclue_simple_new_finish"