aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/lzma/lzma_encoder_features.c
blob: 9fecee481e09e9b4f5a129c479a90060febb1ff4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
///////////////////////////////////////////////////////////////////////////////
//
/// \file       lzma_encoder_features.c
/// \brief      Information about features enabled at compile time
//
//  Copyright (C) 2007 Lasse Collin
//
//  This library is free software; you can redistribute it and/or
//  modify it under the terms of the GNU Lesser General Public
//  License as published by the Free Software Foundation; either
//  version 2.1 of the License, or (at your option) any later version.
//
//  This library 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
//  Lesser General Public License for more details.
//
///////////////////////////////////////////////////////////////////////////////

#include "common.h"


static lzma_mode modes[] = {
	LZMA_MODE_FAST,
	LZMA_MODE_NORMAL,
	LZMA_MODE_INVALID
};


LZMA_API const lzma_mode *const lzma_available_modes = modes;


static lzma_match_finder match_finders[] = {
#ifdef HAVE_MF_HC3
	LZMA_MF_HC3,
#endif

#ifdef HAVE_MF_HC4
	LZMA_MF_HC4,
#endif

#ifdef HAVE_MF_BT2
	LZMA_MF_BT2,
#endif

#ifdef HAVE_MF_BT3
	LZMA_MF_BT3,
#endif

#ifdef HAVE_MF_BT4
	LZMA_MF_BT4,
#endif

	LZMA_MF_INVALID
};


LZMA_API const lzma_match_finder *const lzma_available_match_finders
		= match_finders;