summaryrefslogtreecommitdiffstats
path: root/programs/lz4io.h
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-03-23 07:48:42 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-03-23 07:48:42 (GMT)
commit00c3208c7a352f4136300b257b418c55f07450c8 (patch)
tree51466bdcec0166a2e25d4dc276abac6f284d7f72 /programs/lz4io.h
parente25b51de7b51101e04ceea194dd557fcc23c03ca (diff)
parent7f436a1215f11b0fb872c34f088b8b5888d0630d (diff)
downloadlz4-00c3208c7a352f4136300b257b418c55f07450c8.zip
lz4-00c3208c7a352f4136300b257b418c55f07450c8.tar.gz
lz4-00c3208c7a352f4136300b257b418c55f07450c8.tar.bz2
Merge pull request #61 from Cyan4973/dev
Dev
Diffstat (limited to 'programs/lz4io.h')
-rw-r--r--programs/lz4io.h29
1 files changed, 19 insertions, 10 deletions
diff --git a/programs/lz4io.h b/programs/lz4io.h
index 7869a43..75a36e1 100644
--- a/programs/lz4io.h
+++ b/programs/lz4io.h
@@ -1,6 +1,6 @@
/*
LZ4io.h - LZ4 File/Stream Interface
- Copyright (C) Yann Collet 2011-2014
+ Copyright (C) Yann Collet 2011-2015
GPL v2 License
This program is free software; you can redistribute it and/or modify
@@ -18,7 +18,7 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
You can contact the author at :
- - LZ4 source repository : http://code.google.com/p/lz4/
+ - LZ4 source repository : https://github.com/Cyan4973/lz4
- LZ4 public forum : https://groups.google.com/forum/#!forum/lz4c
*/
/*
@@ -29,17 +29,18 @@
- The license of this source file is GPLv2.
*/
+#pragma once
/* ************************************************** */
/* Special input/output values */
/* ************************************************** */
#define NULL_OUTPUT "null"
-static char stdinmark[] = "stdin";
-static char stdoutmark[] = "stdout";
+static char const stdinmark[] = "stdin";
+static char const stdoutmark[] = "stdout";
#ifdef _WIN32
-static char nulmark[] = "nul";
+static char const nulmark[] = "nul";
#else
-static char nulmark[] = "/dev/null";
+static char const nulmark[] = "/dev/null";
#endif
@@ -47,8 +48,10 @@ static char nulmark[] = "/dev/null";
/* ****************** Functions ********************* */
/* ************************************************** */
-int LZ4IO_compressFilename (char* input_filename, char* output_filename, int compressionlevel);
-int LZ4IO_decompressFilename(char* input_filename, char* output_filename);
+int LZ4IO_compressFilename (const char* input_filename, const char* output_filename, int compressionlevel);
+int LZ4IO_decompressFilename(const char* input_filename, const char* output_filename);
+
+int LZ4IO_compressMultipleFilenames(const char** inFileNamesTable, int ifntSize, const char* suffix, int compressionlevel);
/* ************************************************** */
@@ -67,11 +70,17 @@ int LZ4IO_setBlockSizeID(int blockSizeID);
typedef enum { LZ4IO_blockLinked=0, LZ4IO_blockIndependent} LZ4IO_blockMode_t;
int LZ4IO_setBlockMode(LZ4IO_blockMode_t blockMode);
-/* Default setting : no checksum */
+/* Default setting : no block checksum */
int LZ4IO_setBlockChecksumMode(int xxhash);
-/* Default setting : checksum enabled */
+/* Default setting : stream checksum enabled */
int LZ4IO_setStreamChecksumMode(int xxhash);
/* Default setting : 0 (no notification) */
int LZ4IO_setNotificationLevel(int level);
+
+/* Default setting : 0 (disabled) */
+int LZ4IO_setSparseFile(int enable);
+
+/* Default setting : 0 (disabled) */
+int LZ4IO_setContentSize(int enable);