summaryrefslogtreecommitdiff
path: root/src/journal/compress.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-06-24 21:24:46 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-06-26 01:41:04 -0400
commit355b59e252c9910e44a1ad95c045ba8db58a4f6a (patch)
tree7428dd29c3fb1488b3b04a0bd7c4cb1fd6b5c597 /src/journal/compress.h
parent76cc0bf682b944d4cb611f1b37c71fce140f8fe7 (diff)
journal/compress: add stream compression/decompression functions
Diffstat (limited to 'src/journal/compress.h')
-rw-r--r--src/journal/compress.h4
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);