summaryrefslogtreecommitdiff
path: root/src/gsystem-file-utils.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-02-27 11:46:49 -0500
committerColin Walters <walters@verbum.org>2014-02-27 11:48:02 -0500
commit681eef7fbb5b13fd747ad074eea216c72e673940 (patch)
tree13ae8edf71653e2fb59bfc96df4a644fcc49a876 /src/gsystem-file-utils.h
parent9b64f3e3d0e46bfeb6b2a1a4604c82ba5ad20535 (diff)
downloadlibgsystem-681eef7fbb5b13fd747ad074eea216c72e673940.tar.gz
fileutils: Add gs_file_open_dir_fd_at()
This will be used in the OSTree checkout code, where we want to mkdir() and then open it.
Diffstat (limited to 'src/gsystem-file-utils.h')
-rw-r--r--src/gsystem-file-utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gsystem-file-utils.h b/src/gsystem-file-utils.h
index 2da6646..85ef9ad 100644
--- a/src/gsystem-file-utils.h
+++ b/src/gsystem-file-utils.h
@@ -75,6 +75,12 @@ gboolean gs_file_open_dir_fd (GFile *path,
GCancellable *cancellable,
GError **error);
+gboolean gs_file_open_dir_fd_at (int parent_dfd,
+ const char *name,
+ int *out_fd,
+ GCancellable *cancellable,
+ GError **error);
+
gboolean gs_file_open_in_tmpdir_at (int tmpdir_fd,
int mode,
char **out_name,