"Fossies" - the Fresh Open Source Software Archive 
Member "unipkg-0.6.5/compression.h" (16 Dec 2005, 1478 Bytes) of package /linux/privat/old/unipkg-0.6.5.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 /******************************************************************************\
2 * *
3 * UniPKG (c) iSteve <isteve@bofh.cz>, 2005 *
4 * *
5 * Universal PacKaGer. *
6 * Licensed under GNU/GPL - if you don't like the software, fix it! *
7 * *
8 \******************************************************************************/
9
10 #define C_GZIP 0
11 #define C_BZIP2 1
12 #define C_LZMA 2
13 #define C_NONE 3
14
15 #define CE_OK 0
16 #define CE_CERROR 1
17
18 typedef struct {
19 void *src;
20 void *obuf;
21 unsigned long outblocksize;
22 unsigned long inblocksize;
23 unsigned long lastoutput;
24 unsigned long finished;
25 } c_nocompression;
26
27 typedef struct {
28 void *cstream;
29 int c_type;
30 } c_compdata;
31
32 int decompression_setup(c_compdata *cdata, void *filemap, unsigned long offset, unsigned long inblocksize, char *obuf, unsigned long outblocksize, int ctype);
33 int decompression_init(c_compdata *cdata);
34 int decompression_decompress(c_compdata *cdata, unsigned long outblocksize, char *obuf);
35 int decompression_ammount_left(c_compdata *cdata, unsigned long ammount);
36 unsigned long decompression_ammount_not_processed(c_compdata *cdata);
37 int decompression_cleanup(c_compdata *cdata);