summaryrefslogtreecommitdiffstats
path: root/plzip.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 15:11:05 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 15:11:05 +0000
commitf0130ae17358f2cce85a53f12baecb4720285a85 (patch)
tree344ce3cfda598d45eea16b0675040f518224192e /plzip.h
parentAdding upstream version 0.2. (diff)
downloadplzip-f0130ae17358f2cce85a53f12baecb4720285a85.tar.xz
plzip-f0130ae17358f2cce85a53f12baecb4720285a85.zip
Adding upstream version 0.3.upstream/0.3
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'plzip.h')
-rw-r--r--plzip.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/plzip.h b/plzip.h
index f23152b..d7bb760 100644
--- a/plzip.h
+++ b/plzip.h
@@ -16,17 +16,19 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-struct Muxer_arg
- {
- int dictionary_size;
- int match_len_limit;
- int num_workers;
- int num_slots;
- int debug_level;
- int infd;
- int outfd;
- };
-
-void * muxer( void * arg );
+int compress( const int data_size, const int dictionary_size,
+ const int match_len_limit, const int num_workers,
+ const int num_slots, const int infd, const int outfd,
+ const int debug_level );
+
+
+/*----------------------- Defined in main.cc -----------------------*/
+
+void show_error( const char * msg, const int errcode = 0, const bool help = false ) throw();
+int readblock( const int fd, uint8_t * buf, const int size ) throw();
+int writeblock( const int fd, const uint8_t * buf, const int size ) throw();
+
+
+void fatal(); // Terminate the process
extern int verbosity;