diff options
Diffstat (limited to 'src/journal/compress.h')
-rw-r--r-- | src/journal/compress.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/journal/compress.h b/src/journal/compress.h index 2b87e73a26..f37a6b3d14 100644 --- a/src/journal/compress.h +++ b/src/journal/compress.h @@ -23,6 +23,7 @@ #include <inttypes.h> #include <stdbool.h> +#include <unistd.h> bool compress_blob(const void *src, uint64_t src_size, void *dst, uint64_t *dst_size); @@ -33,3 +34,6 @@ bool uncompress_startswith(const void *src, uint64_t src_size, void **buffer, uint64_t *buffer_size, const void *prefix, uint64_t prefix_len, uint8_t extra); + +int compress_stream(int fdf, int fdt, off_t max_size); +int decompress_stream(int fdf, int fdt, off_t max_size); |