add an plugin API to query generic-gui grid-layout
[ardour.git] / libs / ardour / ardour / lua_script_params.h
1 /*
2  * Copyright (C) 2016 Robin Gareus <robin@gareus.org>
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17  *
18  */
19 #ifndef _ardour_lua_script_params_h_
20 #define _ardour_lua_script_params_h_
21
22 #include "ardour/libardour_visibility.h"
23 #include "ardour/luascripting.h"
24
25 namespace luabridge {
26         class LuaRef;
27 }
28
29 /* Semantically these are static functions of the LuaScripting class
30  * but are kept separately to minimize header includes.
31  *
32  * LuaScripting itself is a standalone abstraction (not depending on luabridge)
33  * luascripting.h is included by session.h (this file is not).
34  *
35  * The implementation of these functions is in libs/ardour/luascripting.cc
36  */
37 namespace ARDOUR { namespace LuaScriptParams {
38
39         LIBARDOUR_API LuaScriptParamList script_params (LuaScriptInfoPtr, const std::string &);
40         LIBARDOUR_API LuaScriptParamList script_params (const std::string &, const std::string &, bool file=true);
41         LIBARDOUR_API void params_to_ref (luabridge::LuaRef *tbl_args, const LuaScriptParamList&);
42         LIBARDOUR_API void ref_to_params (LuaScriptParamList&, luabridge::LuaRef *tbl_args);
43
44 } } // namespace
45
46 #endif // _ardour_lua_script_params_h_