2000-12-14 19:45:35 +01:00
|
|
|
/* $Id: compress.h,v 1.1 2000/12/09 03:08:23 apbianco Exp $
|
2000-12-09 04:08:23 +01:00
|
|
|
|
|
|
|
$Log: compress.h,v $
|
2000-12-14 19:45:35 +01:00
|
|
|
Revision 1.1 2000/12/09 03:08:23 apbianco
|
|
|
|
2000-12-08 Alexandre Petit-Bianco <apbianco@cygnus.com>
|
|
|
|
|
|
|
|
* fastjar: Imported.
|
|
|
|
|
2000-12-09 04:08:23 +01:00
|
|
|
Revision 1.1.1.1 1999/12/06 03:09:12 toast
|
|
|
|
initial checkin..
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Revision 1.3 1999/05/10 08:32:09 burnsbr
|
|
|
|
added new function protos.
|
|
|
|
|
|
|
|
Revision 1.2 1999/04/23 12:02:20 burnsbr
|
|
|
|
added licence
|
|
|
|
|
|
|
|
Revision 1.1 1999/04/23 11:59:37 burnsbr
|
|
|
|
Initial revision
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
compress.h - header for compression
|
|
|
|
Copyright (C) 1999 Bryan Burns
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
2005-06-29 04:59:06 +02:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2000-12-09 04:08:23 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* Initializes the compression data structure(s) */
|
2000-12-14 19:45:35 +01:00
|
|
|
void init_compression(void);
|
2000-12-09 04:08:23 +01:00
|
|
|
|
|
|
|
/* Compresses the file specified by in_fd and appends it to out_fd */
|
2004-07-06 23:40:08 +02:00
|
|
|
int compress_file(int, int, struct zipentry *, struct zipentry *);
|
2000-12-09 04:08:23 +01:00
|
|
|
|
|
|
|
/* Frees memory used by compression function */
|
2000-12-14 19:45:35 +01:00
|
|
|
void end_compression(void);
|
2000-12-09 04:08:23 +01:00
|
|
|
|
2000-12-14 19:45:35 +01:00
|
|
|
void init_inflation(void);
|
2000-12-09 04:08:23 +01:00
|
|
|
int inflate_file(pb_file *, int, struct zipentry *);
|
2000-12-14 19:45:35 +01:00
|
|
|
void end_inflation(void);
|
|
|
|
Bytef *inflate_string(pb_file *, ub4 *, ub4 *);
|