diff options
author | Colin Walters <walters@verbum.org> | 2015-02-20 13:39:39 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2015-02-20 13:44:29 -0500 |
commit | 1288bd850829c66935d3f12c3363a32c87c1421c (patch) | |
tree | 1c642189f9a00cd750d02c6994edc674a3e2320a /glnx-xattrs.h | |
parent | 1ebfefa565692ca033ba2d156c771d9e2c4017fc (diff) | |
download | libglnx-1288bd850829c66935d3f12c3363a32c87c1421c.tar.gz |
xattrs: Migrate some code from ostree here
This also uses GBytes and avoids malloc where possible.
Diffstat (limited to 'glnx-xattrs.h')
-rw-r--r-- | glnx-xattrs.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/glnx-xattrs.h b/glnx-xattrs.h index 2c6abfd..410c722 100644 --- a/glnx-xattrs.h +++ b/glnx-xattrs.h @@ -55,4 +55,24 @@ glnx_fd_set_all_xattrs (int fd, GCancellable *cancellable, GError **error); +GBytes * +glnx_lgetxattrat (int dfd, + const char *subpath, + const char *attribute, + GError **error); + +GBytes * +glnx_fgetxattr_bytes (int fd, + const char *attribute, + GError **error); + +gboolean +glnx_lsetxattrat (int dfd, + const char *subpath, + const char *attribute, + const guint8 *value, + gsize len, + int flags, + GError **error); + G_END_DECLS |