diff options
author | Colin Walters <walters@verbum.org> | 2012-11-29 16:19:38 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-11-29 16:22:03 -0500 |
commit | 1332d9713365a53fae76570a3c484753f9bcbb30 (patch) | |
tree | ad662505367378cfc75938dc4df32da10dddc0fc /gsystem-file-utils.h | |
parent | a2c2d22f80af18878ea16671f1bdc01b1475343c (diff) | |
download | libgsystem-1332d9713365a53fae76570a3c484753f9bcbb30.tar.gz |
fileutils: Add API to get cached paths and wrap raw unlink() and rename()
These bits are merged from git.gnome.org/ostree/src/libotutil.
Diffstat (limited to 'gsystem-file-utils.h')
-rw-r--r-- | gsystem-file-utils.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gsystem-file-utils.h b/gsystem-file-utils.h index f8c1c73..080abc3 100644 --- a/gsystem-file-utils.h +++ b/gsystem-file-utils.h @@ -25,10 +25,23 @@ G_BEGIN_DECLS +const char *gs_file_get_path_cached (GFile *file); + +const char *gs_file_get_basename_cached (GFile *file); + GInputStream *gs_file_read_noatime (GFile *path, GCancellable *cancellable, GError **error); +gboolean gs_file_rename (GFile *src, + GFile *dest, + GCancellable *cancellable, + GError **error); + +gboolean gs_file_unlink (GFile *path, + GCancellable *cancellable, + GError **error); + G_END_DECLS #endif |