tar.h 552 B

123456789101112131415161718192021222324
  1. #ifndef TAR_H
  2. #define TAR_H
  3. #include "../archive.h"
  4. extern uint8_t tar_compression;
  5. DEF_EXTRACTOR(Tar);
  6. struct TarCompressorContext {
  7. uint8_t has_threads;
  8. uint8_t has_memory_limit;
  9. };
  10. #define TAR_COMPRESSOR_ARGS \
  11. char *const compressor, char *const file, const struct Config *cfg, \
  12. const struct TarCompressorContext *ctx
  13. int tar_compressor_list(TAR_COMPRESSOR_ARGS);
  14. int tar_compressor_extract(TAR_COMPRESSOR_ARGS);
  15. int tar_compressor_create(TAR_COMPRESSOR_ARGS);
  16. #endif /* TAR_H */