separate VST blacklist for 32/64bit
[ardour.git] / libs / ardour / ardour / vst_info_file.h
1 /*
2     Copyright (C) 2012-2014 Paul Davis
3     Author: Robin Gareus <robin@gareus.org>
4
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation; either version 2 of the License, or
8     (at your option) any later version.
9
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13     GNU General Public License for more details.
14
15     You should have received a copy of the GNU General Public License
16     along with this program; if not, write to the Free Software
17     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19 */
20
21 #ifndef __vst_info_file_h__
22 #define __vst_info_file_h__
23
24 #include "ardour/libardour_visibility.h"
25 #include "ardour/vst_types.h"
26 #include <vector>
27
28 /* Cache File extensions */
29 # if ( defined(__x86_64__) || defined(_M_X64) )
30 #  define VST_EXT_BLACKLIST ".fsb64"
31 #else
32 #  define VST_EXT_BLACKLIST ".fsb"
33 #endif
34
35 #define VST_EXT_ERRORFILE ".err"
36 #define VST_EXT_INFOFILE  ".fsi"
37
38 #ifndef VST_SCANNER_APP
39 namespace ARDOUR {
40 #endif
41
42 enum VSTScanMode {
43         VST_SCAN_CACHE_ONLY,
44         VST_SCAN_USE_APP,
45         VST_SCAN_INTERNAL
46 };
47
48 LIBARDOUR_API extern std::string get_personal_vst_info_cache_dir ();
49 LIBARDOUR_API extern std::string get_personal_vst_blacklist_dir ();
50 LIBARDOUR_API extern void vstfx_free_info_list (std::vector<VSTInfo *> *infos);
51
52 #ifdef LXVST_SUPPORT
53 LIBARDOUR_API extern std::vector<VSTInfo*> * vstfx_get_info_lx (char *, enum VSTScanMode mode = VST_SCAN_USE_APP);
54 #endif
55
56 #ifdef WINDOWS_VST_SUPPORT
57 LIBARDOUR_API extern std::vector<VSTInfo*> * vstfx_get_info_fst (char *, enum VSTScanMode mode = VST_SCAN_USE_APP);
58 #endif
59
60 #ifndef VST_SCANNER_APP
61 } // namespace
62 #endif
63
64 #endif /* __vstfx_h__ */
65