diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2024-10-01 15:45:04 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2024-10-01 15:45:04 +0000 |
commit | f6d7878a544f7de234713f20ec66fb32442b889b (patch) | |
tree | 95b826e990ed314a0fd368a28f50f1c3f6811cd7 /gio/gfile.h | |
parent | 2b5d3b5831fb027ca041130bf91779ed7e5c9bf0 (diff) | |
parent | ab51ed0521d16227a0496c972ddc0bbcd5c9cd74 (diff) |
Merge branch 'speed-up-query-exists' into 'main'
gio: Add a query_exists vfunc to GFile
See merge request GNOME/glib!4272
Diffstat (limited to 'gio/gfile.h')
-rw-r--r-- | gio/gfile.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gio/gfile.h b/gio/gfile.h index d49c3b36c..74e50db83 100644 --- a/gio/gfile.h +++ b/gio/gfile.h @@ -148,6 +148,7 @@ typedef struct _GFileIface GFileIface; * @measure_disk_usage: Recursively measures the disk usage of @file. Since 2.38 * @measure_disk_usage_async: Asynchronously recursively measures the disk usage of @file. Since 2.38 * @measure_disk_usage_finish: Finishes an asynchronous recursive measurement of the disk usage of @file. Since 2.38 + * @query_exists: Queries whether a file exists. Since 2.84 * * An interface for writing VFS file handles. **/ @@ -598,6 +599,9 @@ struct _GFileIface guint64 *num_dirs, guint64 *num_files, GError **error); + + gboolean (* query_exists) (GFile *file, + GCancellable *cancellable); }; GIO_AVAILABLE_IN_ALL |