#ifndef COMPRESSION_H
#define COMPRESSION_H
struct compression_handler {
const char *name;
const char *ext;
bool log_errors);
};
extern const struct compression_handler compression_handlers[];
/* Lookup handler by its name (gz, bz2) */
/* Detect handler by looking at the first few bytes of the input stream. */
const struct compression_handler *
/* Lookup handler based on filename extension in the path */
const struct compression_handler *
compression_lookup_handler_from_ext(const char *path);
#endif