add support for VST default values (instantiation time value)
[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 # if ( defined(__x86_64__) || defined(_M_X64) )
36 #define VST_EXT_INFOFILE  ".fsi64"
37 #define VST_BLACKLIST  "vst64_blacklist.txt"
38 #else
39 #define VST_EXT_INFOFILE  ".fsi32"
40 #define VST_BLACKLIST  "vst32_blacklist.txt"
41 #endif
42
43 #ifndef VST_SCANNER_APP
44 namespace ARDOUR {
45 #endif
46
47 enum VSTScanMode {
48         VST_SCAN_CACHE_ONLY,
49         VST_SCAN_USE_APP,
50         VST_SCAN_INTERNAL
51 };
52
53 LIBARDOUR_API extern void vstfx_free_info_list (std::vector<VSTInfo *> *infos);
54
55 #ifdef LXVST_SUPPORT
56 LIBARDOUR_API extern std::vector<VSTInfo*> * vstfx_get_info_lx (char *, enum VSTScanMode mode = VST_SCAN_USE_APP);
57 #endif
58
59 #ifdef WINDOWS_VST_SUPPORT
60 LIBARDOUR_API extern std::vector<VSTInfo*> * vstfx_get_info_fst (char *, enum VSTScanMode mode = VST_SCAN_USE_APP);
61 #endif
62
63 #ifndef VST_SCANNER_APP
64 } // namespace
65 #endif
66
67 #endif /* __vstfx_h__ */
68