diff options
author | Zeeshan Ali <zeeshanak@gnome.org> | 2020-02-19 12:28:31 +0100 |
---|---|---|
committer | Zeeshan Ali <zeeshanak@gnome.org> | 2020-02-19 17:02:26 +0100 |
commit | a7e945e75b8553318ffebf5749625bb8689a1be4 (patch) | |
tree | c81d73e3d0e083427afdded1b5e3dbb1cd470393 /libgeoclue/gclue-simple.h | |
parent | a0a211068ee9cc612715e399d73fb79c97ad210c (diff) | |
download | geoclue-a7e945e75b8553318ffebf5749625bb8689a1be4.tar.gz |
lib: Add threshold props to GClueSimple
Now that there will be no client anymore in case of running inside xdg
portal, people need some way to set these through GClueSimple. Since in
case of portal, these can only be set in the beginning, we keep them
construct-only.
Diffstat (limited to 'libgeoclue/gclue-simple.h')
-rw-r--r-- | libgeoclue/gclue-simple.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libgeoclue/gclue-simple.h b/libgeoclue/gclue-simple.h index 27c2ae6..fd7b832 100644 --- a/libgeoclue/gclue-simple.h +++ b/libgeoclue/gclue-simple.h @@ -69,6 +69,21 @@ GClueSimple * gclue_simple_new_sync (const char *desktop_id, GClueAccuracyLevel accuracy_level, GCancellable *cancellable, GError **error); +void gclue_simple_new_with_thresholds + (const char *desktop_id, + GClueAccuracyLevel accuracy_level, + guint time_threshold, + guint distance_threshold, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GClueSimple * gclue_simple_new_with_thresholds_sync + (const char *desktop_id, + GClueAccuracyLevel accuracy_level, + guint time_threshold, + guint distance_threshold, + GCancellable *cancellable, + GError **error); GClueClient * gclue_simple_get_client (GClueSimple *simple); GClueLocation * gclue_simple_get_location (GClueSimple *simple); |