summaryrefslogtreecommitdiff
path: root/src/gsystem-file-utils.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-04-29 07:35:05 -0400
committerColin Walters <walters@verbum.org>2014-04-29 07:39:42 -0400
commit8b726cd97bbaa9f7ce57ddbe0e16e96176761c21 (patch)
treebb1c1dac40ba6b138d3d4f10d26584ff88202b4e /src/gsystem-file-utils.h
parent1afbc2e476331f2cef3e46dee7a7fbcd9485535c (diff)
downloadlibgsystem-8b726cd97bbaa9f7ce57ddbe0e16e96176761c21.tar.gz
fileutil: Add API to retrieve xattrs relative to a directory fd
This is the only safe way to get xattrs for a symlink relative to a dirfd.
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 85ef9ad..d792c81 100644
--- a/src/gsystem-file-utils.h
+++ b/src/gsystem-file-utils.h
@@ -163,6 +163,12 @@ gboolean gs_file_get_all_xattrs (GFile *f,
GCancellable *cancellable,
GError **error);
+gboolean gs_dfd_and_name_get_all_xattrs (int dfd,
+ const char *name,
+ GVariant **out_xattrs,
+ GCancellable *cancellable,
+ GError **error);
+
gboolean gs_fd_set_all_xattrs (int fd,
GVariant *xattrs,
GCancellable *cancellable,