annotate src/zlib-1.2.7/contrib/puff/puff.h @ 4:e13257ea84a4
Add bzip2, zlib, liblo, portaudio sources
author |
Chris Cannam |
date |
Wed, 20 Mar 2013 13:59:52 +0000 |
parents |
|
children |
|
rev |
line source |
Chris@4
|
1 /* puff.h
|
Chris@4
|
2 Copyright (C) 2002-2010 Mark Adler, all rights reserved
|
Chris@4
|
3 version 2.2, 25 Apr 2010
|
Chris@4
|
4
|
Chris@4
|
5 This software is provided 'as-is', without any express or implied
|
Chris@4
|
6 warranty. In no event will the author be held liable for any damages
|
Chris@4
|
7 arising from the use of this software.
|
Chris@4
|
8
|
Chris@4
|
9 Permission is granted to anyone to use this software for any purpose,
|
Chris@4
|
10 including commercial applications, and to alter it and redistribute it
|
Chris@4
|
11 freely, subject to the following restrictions:
|
Chris@4
|
12
|
Chris@4
|
13 1. The origin of this software must not be misrepresented; you must not
|
Chris@4
|
14 claim that you wrote the original software. If you use this software
|
Chris@4
|
15 in a product, an acknowledgment in the product documentation would be
|
Chris@4
|
16 appreciated but is not required.
|
Chris@4
|
17 2. Altered source versions must be plainly marked as such, and must not be
|
Chris@4
|
18 misrepresented as being the original software.
|
Chris@4
|
19 3. This notice may not be removed or altered from any source distribution.
|
Chris@4
|
20
|
Chris@4
|
21 Mark Adler madler@alumni.caltech.edu
|
Chris@4
|
22 */
|
Chris@4
|
23
|
Chris@4
|
24
|
Chris@4
|
25 /*
|
Chris@4
|
26 * See puff.c for purpose and usage.
|
Chris@4
|
27 */
|
Chris@4
|
28 #ifndef NIL
|
Chris@4
|
29 # define NIL ((unsigned char *)0) /* for no output option */
|
Chris@4
|
30 #endif
|
Chris@4
|
31
|
Chris@4
|
32 int puff(unsigned char *dest, /* pointer to destination pointer */
|
Chris@4
|
33 unsigned long *destlen, /* amount of output space */
|
Chris@4
|
34 const unsigned char *source, /* pointer to source data pointer */
|
Chris@4
|
35 unsigned long *sourcelen); /* amount of input available */
|