add lua search path
[ardour.git] / libs / ardour / ardour / search_paths.h
1 /*
2     Copyright (C) 2011 Tim Mayberry
3     Copyright (C) 2013 Paul Davis
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 __libardour_search_paths_h__
22 #define __libardour_search_paths_h__
23
24 #include "ardour/libardour_visibility.h"
25
26 #include "pbd/search_path.h"
27
28 namespace ARDOUR {
29
30         LIBARDOUR_API const char *vst_search_path ();
31
32         /**
33          * return a SearchPath containing directories in which to look for
34          * backend plugins.
35          *
36          * If ARDOUR_BACKEND_PATH is defined then the SearchPath returned
37          * will contain only those directories specified in it, otherwise it will
38          * contain the user and system directories which may contain audio/MIDI
39          * backends.
40          */
41         LIBARDOUR_API PBD::Searchpath backend_search_path ();
42
43         /**
44          * return a Searchpath containing directories in which to look for
45          * control surface plugins.
46          *
47          * If ARDOUR_SURFACES_PATH is defined then the Searchpath returned
48          * will contain only those directories specified in it, otherwise it will
49          * contain the user and system directories which may contain control
50          * surface plugins.
51          */
52         LIBARDOUR_API PBD::Searchpath control_protocol_search_path ();
53
54         /**
55          * return a Searchpath containing directories in which to look for
56          * export_formats.
57          */
58         LIBARDOUR_API PBD::Searchpath export_formats_search_path ();
59
60         /**
61          * return a Searchpath containing directories in which to look for
62          * LADSPA plugins.
63          *
64          * If LADSPA_PATH is defined then the Searchpath returned
65          * will contain the directories specified in it as well as the
66          * user and system directories.
67          */
68         LIBARDOUR_API PBD::Searchpath ladspa_search_path ();
69
70         /**
71          * return a Searchpath containing directories in which to look for
72          * lv2 plugins.
73          */
74         LIBARDOUR_API PBD::Searchpath lv2_bundled_search_path ();
75
76         /**
77          * return a Searchpath containing directories in which to look for
78          * MIDI patch files ("*.midnam") aka MIDNAM files
79          *
80          * If ARDOUR_MIDI_PATCH_PATH is defined then the Searchpath returned
81          * will contain only those directories specified in it, otherwise it will
82          * contain the user and system directories which may contain control
83          * surface plugins.
84          */
85         LIBARDOUR_API PBD::Searchpath midi_patch_search_path ();
86
87         /**
88          * return a Searchpath containing directories in which to look for
89          * panner plugins.
90          *
91          * If ARDOUR_PANNER_PATH is defined then the Searchpath returned
92          * will contain only those directories specified in it, otherwise it will
93          * contain the user and system directories which may contain control
94          * surface plugins.
95          */
96         LIBARDOUR_API PBD::Searchpath panner_search_path ();
97
98         /**
99          * return a Searchpath containing directories in which to look for
100          * route templates.
101          */
102         LIBARDOUR_API PBD::Searchpath route_template_search_path ();
103
104         /**
105          * return a Searchpath containing directories in which to look for
106          * other templates.
107          */
108         LIBARDOUR_API PBD::Searchpath template_search_path ();
109
110
111         /**
112          * return a Searchpath containing directories in which to look for
113          * lua scripts
114          */
115         LIBARDOUR_API PBD::Searchpath lua_search_path ();
116
117
118 } // namespace ARDOUR
119
120 #endif /* __libardour_search_paths_h__ */