From d6f0f03b68fc4cf9ffb8006e192e36f0ebf51ea6 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 1 Feb 2018 09:13:14 +0100 Subject: libarchive: move bbunpack constants to bb_archive.h Signed-off-by: Denys Vlasenko --- include/bb_archive.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/bb_archive.h') diff --git a/include/bb_archive.h b/include/bb_archive.h index d3a02cf18..8ed20d70e 100644 --- a/include/bb_archive.h +++ b/include/bb_archive.h @@ -250,6 +250,21 @@ int bbunpack(char **argv, char* FAST_FUNC (*make_new_name)(char *filename, const char *expected_ext), const char *expected_ext ) FAST_FUNC; +#define BBUNPK_OPTSTR "cfkvq" +#define BBUNPK_OPTSTRLEN 5 +#define BBUNPK_OPTSTRMASK ((1 << BBUNPK_OPTSTRLEN) - 1) +enum { + BBUNPK_OPT_STDOUT = 1 << 0, + BBUNPK_OPT_FORCE = 1 << 1, + /* only some decompressors: */ + BBUNPK_OPT_KEEP = 1 << 2, + BBUNPK_OPT_VERBOSE = 1 << 3, + BBUNPK_OPT_QUIET = 1 << 4, + /* not included in BBUNPK_OPTSTR: */ + BBUNPK_OPT_DECOMPRESS = 1 << 5, + BBUNPK_OPT_TEST = 1 << 6, + BBUNPK_SEAMLESS_MAGIC = (1 << 31) * ENABLE_ZCAT * SEAMLESS_COMPRESSION, +}; void check_errors_in_children(int signo); #if BB_MMU -- cgit v1.2.3