summaryrefslogtreecommitdiff
path: root/libarchive/archive_acl_private.h
diff options
context:
space:
mode:
authorMartin Matuska <martin@matuska.org>2016-12-27 23:21:39 +0100
committerMartin Matuska <martin@matuska.org>2016-12-27 23:21:39 +0100
commit379867ecb330b3a952fb7bfa7bffb7bbd5547205 (patch)
treed129a4f831519f0dc129831d7f1031d08cea176e /libarchive/archive_acl_private.h
parent42a3408ac7df1e69bea9ea12b72e14f59f7400c0 (diff)
downloadlibarchive-379867ecb330b3a952fb7bfa7bffb7bbd5547205.tar.gz
Extend NFSv4 ACL support in libarchive
Break up, simplify and improve OS-independent ACL code Add star-compatible NFSv4 ACL read/write support to pax (SCHILY.acl.ace) Remap ARCHIVE_ACL_ENTRY_STYLE_* flags New functions: archive_entry_acl_from_text() archive_entry_acl_from_text_w() archive_entry_acl_to_text() archive_entry_acl_to_text_w() Deprecated functions: archive_entry_acl_text() archive_entry_acl_text_w() Closes #771
Diffstat (limited to 'libarchive/archive_acl_private.h')
-rw-r--r--libarchive/archive_acl_private.h21
1 files changed, 8 insertions, 13 deletions
diff --git a/libarchive/archive_acl_private.h b/libarchive/archive_acl_private.h
index 1421adbf..0aac6fff 100644
--- a/libarchive/archive_acl_private.h
+++ b/libarchive/archive_acl_private.h
@@ -66,22 +66,17 @@ int archive_acl_add_entry_w_len(struct archive_acl *,
int archive_acl_add_entry_len(struct archive_acl *,
int, int, int, int, const char *, size_t);
-const wchar_t *archive_acl_text_w(struct archive *, struct archive_acl *, int);
-int archive_acl_text_l(struct archive_acl *, int, const char **, size_t *,
+wchar_t *archive_acl_to_text_w(struct archive_acl *, ssize_t *, int,
+ struct archive *);
+char *archive_acl_to_text_l(struct archive_acl *, ssize_t *, int,
struct archive_string_conv *);
/*
- * Private ACL parser. This is private because it handles some
- * very weird formats that clients should not be messing with.
- * Clients should only deal with their platform-native formats.
- * Because of the need to support many formats cleanly, new arguments
- * are likely to get added on a regular basis. Clients who try to use
- * this interface are likely to be surprised when it changes.
+ * ACL text parser.
*/
-int archive_acl_parse_w(struct archive_acl *,
- const wchar_t *, int /* type */);
-int archive_acl_parse_l(struct archive_acl *,
- const char *, int /* type */,
- struct archive_string_conv *);
+int archive_acl_from_text_w(struct archive_acl *, const wchar_t * /* wtext */,
+ int /* type */);
+int archive_acl_from_text_l(struct archive_acl *, const char * /* text */,
+ int /* type */, struct archive_string_conv *);
#endif /* ARCHIVE_ENTRY_PRIVATE_H_INCLUDED */