Luc Verhaegen | 1646a41 | 2009-06-16 08:22:14 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2009 Luc Verhaegen <libv@skynet.be> |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; either version 2, or (at your option) |
| 7 | * any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; see the file COPYING. If not, write to |
| 16 | * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 17 | */ |
| 18 | |
| 19 | #ifndef LH5_EXTRACT_H |
| 20 | #define LH5_EXTRACT_H |
| 21 | |
| 22 | unsigned int LH5HeaderParse(unsigned char *Buffer, int BufferSize, |
| 23 | unsigned int *original_size, |
| 24 | unsigned int *packed_size, |
| 25 | char **name, unsigned short *crc); |
| 26 | |
| 27 | unsigned short CRC16Calculate(unsigned char *Buffer, int BufferSize); |
| 28 | |
| 29 | void LH5Decode(unsigned char *PackedBuffer, int PackedBufferSize, |
| 30 | unsigned char *OutputBuffer, int OutputBufferSize); |
| 31 | |
| 32 | #endif /* LH5_EXTRACT_H */ |