f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainen struct istream *(*create_istream)(struct istream *input,
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainen struct ostream *(*create_ostream)(struct ostream *output, int level);
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainenextern const struct compression_handler compression_handlers[];
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainen/* Lookup handler by its name (gz, bz2) */
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainenconst struct compression_handler *compression_lookup_handler(const char *name);
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainen/* Detect handler by looking at the first few bytes of the input stream. */
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainencompression_detect_handler(struct istream *input);
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainen/* Lookup handler based on filename extension in the path */