]> 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>
Mon, 14 Feb 2022 13:55:04 +0000 (14:55 +0100)
vapi/libgeoclue-2.0.vapi
vapi/metadata/Geoclue-2.0.metadata [new file with mode: 0644]

index e6ebba2906e56d996eb51a90705e3fd17787f437..eb66f9729f4fb5e4ab7ca42037ad96ec3ba59c83 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"