summaryrefslogtreecommitdiff
path: root/gsystem-file-utils.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-01-04 17:02:39 -0500
committerColin Walters <walters@verbum.org>2013-01-04 17:02:39 -0500
commit660aa3e43f53d272508fc8fcd3eef62b426c59ae (patch)
tree09e069ebb6e4028af60d6ce7671b6b4a79efb52d /gsystem-file-utils.h
parentb11ad335f459e3c61b317308da57de441660efd0 (diff)
downloadlibgsystem-660aa3e43f53d272508fc8fcd3eef62b426c59ae.tar.gz
fileutils: Add gs_file_sync_data()
It often occurs that I want to ensure file data is on disk so that updates can be atomic.
Diffstat (limited to 'gsystem-file-utils.h')
-rw-r--r--gsystem-file-utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gsystem-file-utils.h b/gsystem-file-utils.h
index bf07b3a..768cc0c 100644
--- a/gsystem-file-utils.h
+++ b/gsystem-file-utils.h
@@ -40,6 +40,10 @@ GBytes *gs_file_map_readonly (GFile *file,
GCancellable *cancellable,
GError **error);
+gboolean gs_file_sync_data (GFile *file,
+ GCancellable *cancellable,
+ GError **error);
+
gboolean gs_file_rename (GFile *from,
GFile *to,
GCancellable *cancellable,