| 1 | /* $Id: compress.h,v 1.2 2000/12/14 18:45:35 ghazi Exp $ | 
|---|
| 2 |  | 
|---|
| 3 | $Log: compress.h,v $ | 
|---|
| 4 | Revision 1.2  2000/12/14 18:45:35  ghazi | 
|---|
| 5 | Warning fixes: | 
|---|
| 6 |  | 
|---|
| 7 | * compress.c: Include stdlib.h and compress.h. | 
|---|
| 8 | (rcsid): Delete. | 
|---|
| 9 | (report_str_error): Make static. | 
|---|
| 10 | (ez_inflate_str): Delete unused variable.  Add parens in if-stmt. | 
|---|
| 11 | (hrd_inflate_str): Likewise. | 
|---|
| 12 |  | 
|---|
| 13 | * compress.h (init_compression, end_compression, init_inflation, | 
|---|
| 14 | end_inflation): Prototype void arguments. | 
|---|
| 15 |  | 
|---|
| 16 | * dostime.c (rcsid): Delete. | 
|---|
| 17 |  | 
|---|
| 18 | * jargrep.c: Include ctype.h, stdlib.h, zlib.h and compress.h. | 
|---|
| 19 | Make functions static.  Cast ctype function argument to `unsigned | 
|---|
| 20 | char'.  Add parens in if-stmts.  Constify. | 
|---|
| 21 | (Usage): Change into a macro. | 
|---|
| 22 | (jargrep): Remove unused parameter. | 
|---|
| 23 |  | 
|---|
| 24 | * jartool.c: Constify.  Add parens in if-stmts.  Align | 
|---|
| 25 | signed/unsigned char pointers in functions calls using casts. | 
|---|
| 26 | (rcsid): Delete. | 
|---|
| 27 | (list_jar): Fix printf format specifier. | 
|---|
| 28 | (usage): Chop long string into bits.  Reformat. | 
|---|
| 29 |  | 
|---|
| 30 | * pushback.c (rcsid): Delete. | 
|---|
| 31 |  | 
|---|
| 32 | Revision 1.1  2000/12/09 03:08:23  apbianco | 
|---|
| 33 | 2000-12-08  Alexandre Petit-Bianco  <apbianco@cygnus.com> | 
|---|
| 34 |  | 
|---|
| 35 | * fastjar: Imported. | 
|---|
| 36 |  | 
|---|
| 37 | Revision 1.1.1.1  1999/12/06 03:09:12  toast | 
|---|
| 38 | initial checkin.. | 
|---|
| 39 |  | 
|---|
| 40 |  | 
|---|
| 41 |  | 
|---|
| 42 | Revision 1.3  1999/05/10 08:32:09  burnsbr | 
|---|
| 43 | added new function protos. | 
|---|
| 44 |  | 
|---|
| 45 | Revision 1.2  1999/04/23 12:02:20  burnsbr | 
|---|
| 46 | added licence | 
|---|
| 47 |  | 
|---|
| 48 | Revision 1.1  1999/04/23 11:59:37  burnsbr | 
|---|
| 49 | Initial revision | 
|---|
| 50 |  | 
|---|
| 51 |  | 
|---|
| 52 | */ | 
|---|
| 53 |  | 
|---|
| 54 | /* | 
|---|
| 55 | compress.h - header for compression | 
|---|
| 56 | Copyright (C) 1999  Bryan Burns | 
|---|
| 57 |  | 
|---|
| 58 | This program is free software; you can redistribute it and/or | 
|---|
| 59 | modify it under the terms of the GNU General Public License | 
|---|
| 60 | as published by the Free Software Foundation; either version 2 | 
|---|
| 61 | of the License, or (at your option) any later version. | 
|---|
| 62 |  | 
|---|
| 63 | This program is distributed in the hope that it will be useful, | 
|---|
| 64 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 65 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 66 | GNU General Public License for more details. | 
|---|
| 67 |  | 
|---|
| 68 | You should have received a copy of the GNU General Public License | 
|---|
| 69 | along with this program; if not, write to the Free Software | 
|---|
| 70 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. | 
|---|
| 71 | */ | 
|---|
| 72 |  | 
|---|
| 73 | /* Initializes the compression data structure(s) */ | 
|---|
| 74 | void init_compression(void); | 
|---|
| 75 |  | 
|---|
| 76 | /* Compresses the file specified by in_fd and appends it to out_fd */ | 
|---|
| 77 | int compress_file(int in_fd, int out_fd, struct zipentry *ze); | 
|---|
| 78 |  | 
|---|
| 79 | /* Frees memory used by compression function */ | 
|---|
| 80 | void end_compression(void); | 
|---|
| 81 |  | 
|---|
| 82 | void init_inflation(void); | 
|---|
| 83 | int inflate_file(pb_file *, int, struct zipentry *); | 
|---|
| 84 | void end_inflation(void); | 
|---|
| 85 | Bytef *inflate_string(pb_file *, ub4 *, ub4 *); | 
|---|