summaryrefslogtreecommitdiffstats
path: root/plzip.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 15:11:13 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 15:11:13 +0000
commit7dc85393789f529c0ca2efff79c0242f4ec4db87 (patch)
treed021be7ecf23ddd19d40e7e954a08e8b1dfe44b8 /plzip.h
parentAdding debian version 0.2-1. (diff)
downloadplzip-7dc85393789f529c0ca2efff79c0242f4ec4db87.tar.xz
plzip-7dc85393789f529c0ca2efff79c0242f4ec4db87.zip
Merging upstream version 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;