Merge branch 'cairocanvas'
[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 #ifndef VST_SCANNER_APP
29 namespace ARDOUR {
30 #endif
31
32 enum VSTScanMode {
33         VST_SCAN_CACHE_ONLY,
34         VST_SCAN_USE_APP,
35         VST_SCAN_INTERNAL
36 };
37
38 LIBARDOUR_API extern std::string get_personal_vst_info_cache_dir ();
39 LIBARDOUR_API extern std::string get_personal_vst_blacklist_dir ();
40 LIBARDOUR_API extern void vstfx_free_info_list (std::vector<VSTInfo *> *infos);
41
42 #ifdef LXVST_SUPPORT
43 LIBARDOUR_API extern std::vector<VSTInfo*> * vstfx_get_info_lx (char *, enum VSTScanMode mode = VST_SCAN_USE_APP);
44 #endif
45
46 #ifdef WINDOWS_VST_SUPPORT
47 LIBARDOUR_API extern std::vector<VSTInfo*> * vstfx_get_info_fst (char *, enum VSTScanMode mode = VST_SCAN_USE_APP);
48 #endif
49
50 #ifndef VST_SCANNER_APP
51 } // namespace
52 #endif
53
54 #endif /* __vstfx_h__ */
55