From 94e6a159f35227b539bc8e359762b72eb3e8f4dd Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Fri, 14 Jan 2022 14:37:12 +0100 Subject: [PATCH] libgeoclue-2.0: Fix Simple.with_thresholds() contructor binding --- vapi/libgeoclue-2.0.vapi | 3 ++- vapi/metadata/Geoclue-2.0.metadata | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 vapi/metadata/Geoclue-2.0.metadata diff --git a/vapi/libgeoclue-2.0.vapi b/vapi/libgeoclue-2.0.vapi index 38e95f19e..2fb28bb7d 100644 --- a/vapi/libgeoclue-2.0.vapi +++ b/vapi/libgeoclue-2.0.vapi @@ -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 index 000000000..bbb932bcd --- /dev/null +++ b/vapi/metadata/Geoclue-2.0.metadata @@ -0,0 +1,2 @@ +Simple + .new_with_thresholds finish_name="gclue_simple_new_finish" -- 2.47.2