blob: 768a260f568866d2bf3250329299cf47c4950044 [file] [log] [blame]
Luc Verhaegen1646a412009-06-16 08:22:14 +02001/*
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
22unsigned int LH5HeaderParse(unsigned char *Buffer, int BufferSize,
23 unsigned int *original_size,
24 unsigned int *packed_size,
25 char **name, unsigned short *crc);
26
27unsigned short CRC16Calculate(unsigned char *Buffer, int BufferSize);
28
Anton Kochkovb09d0ef2012-12-21 07:17:56 +040029int LH5Decode(unsigned char *PackedBuffer, int PackedBufferSize,
Anton Kochkov8f9427f2013-04-07 13:20:30 +040030 unsigned char *OutputBuffer, int OutputBufferSize);
Luc Verhaegen1646a412009-06-16 08:22:14 +020031
Anton Kochkov8f9427f2013-04-07 13:20:30 +040032#endif /* LH5_EXTRACT_H */