| 1 | /* |
| 2 | * This is a modified version of Mark Adlers work, |
| 3 | * see below for the original copyright. |
| 4 | * 2006 - Joerg Dietrich <[email protected]> |
| 5 | */ |
| 6 | |
| 7 | /* puff.h |
| 8 | Copyright (C) 2002, 2003 Mark Adler, all rights reserved |
| 9 | version 1.7, 3 Mar 2002 |
| 10 | |
| 11 | This software is provided 'as-is', without any express or implied |
| 12 | warranty. In no event will the author be held liable for any damages |
| 13 | arising from the use of this software. |
| 14 | |
| 15 | Permission is granted to anyone to use this software for any purpose, |
| 16 | including commercial applications, and to alter it and redistribute it |
| 17 | freely, subject to the following restrictions: |
| 18 | |
| 19 | 1. The origin of this software must not be misrepresented; you must not |
| 20 | claim that you wrote the original software. If you use this software |
| 21 | in a product, an acknowledgment in the product documentation would be |
| 22 | appreciated but is not required. |
| 23 | 2. Altered source versions must be plainly marked as such, and must not be |
| 24 | misrepresented as being the original software. |
| 25 | 3. This notice may not be removed or altered from any source distribution. |
| 26 | |
| 27 | Mark Adler [email protected] |
| 28 | */ |
| 29 | |
| 30 | #ifndef __PUFF_H |
| 31 | #define __PUFF_H |
| 32 | |
| 33 | #include "../qcommon/q_shared.h" /* for definitions of the <stdint.h> types */ |
| 34 | |
| 35 | /* |
| 36 | * See puff.c for purpose and usage. |
| 37 | */ |
| 38 | int32_t puff(uint8_t *dest, /* pointer to destination pointer */ |
| 39 | uint32_t *destlen, /* amount of output space */ |
| 40 | uint8_t *source, /* pointer to source data pointer */ |
| 41 | uint32_t *sourcelen); /* amount of input available */ |
| 42 | |
| 43 | #endif // __PUFF_H |