1 /*
2 BStone: A Source port of
3 Blake Stone: Aliens of Gold and Blake Stone: Planet Strike
4 
5 Copyright (c) 1992-2013 Apogee Entertainment, LLC
6 Copyright (c) 2013-2015 Boris I. Bendovsky (bibendovsky@hotmail.com)
7 
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
12 
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the
20 Free Software Foundation, Inc.,
21 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 */
23 
24 
25 #ifndef BSTONE_JM_LZH_INCLUDED
26 #define BSTONE_JM_LZH_INCLUDED
27 
28 
29 #include <cstdint>
30 
31 
32 extern void (* LZH_CompressDisplayVector)(uint32_t, uint32_t);
33 extern void (* LZH_DecompressDisplayVector)(
34     uint32_t,
35     uint32_t);
36 
37 
38 
39 // ===========================================================================
40 //
41 // PROTOTYPES
42 //
43 // ===========================================================================
44 
45 
46 bool LZH_Startup();
47 void LZH_Shutdown();
48 
49 int LZH_Compress(
50     const void* infile,
51     void* outfile,
52     uint32_t DataLength);
53 
54 int LZH_Decompress(
55     const void* infile,
56     void* outfile,
57     uint32_t OrginalLength,
58     uint32_t CompressLength);
59 
60 
61 #endif // BSTONE_JM_LZH_INCLUDED
62