diff options
author | Luc Verhaegen <libv@skynet.be> | 2009-06-16 08:22:14 +0200 |
---|---|---|
committer | Luc Verhaegen <libv@skynet.be> | 2009-06-16 08:22:14 +0200 |
commit | 1646a418194b08452fa33be1839b933b69760455 (patch) | |
tree | 94f3f6178c1f53954bc6db2694bf4d4e385ee32b /lh5_extract.h | |
parent | 2e42406f9256273d78b5a2c8f71e9d0b5b8c648b (diff) |
Split lh5_extract into lh5_test, lh5_extract.o and lh5_extract.h.
This to prepare inclusion into the bios decoder.
Diffstat (limited to 'lh5_extract.h')
-rw-r--r-- | lh5_extract.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lh5_extract.h b/lh5_extract.h new file mode 100644 index 0000000..644c39a --- /dev/null +++ b/lh5_extract.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009 Luc Verhaegen <libv@skynet.be> + * + * 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, 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; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#ifndef LH5_EXTRACT_H +#define LH5_EXTRACT_H + +unsigned int LH5HeaderParse(unsigned char *Buffer, int BufferSize, + unsigned int *original_size, + unsigned int *packed_size, + char **name, unsigned short *crc); + +unsigned short CRC16Calculate(unsigned char *Buffer, int BufferSize); + +void LH5Decode(unsigned char *PackedBuffer, int PackedBufferSize, + unsigned char *OutputBuffer, int OutputBufferSize); + +#endif /* LH5_EXTRACT_H */ |