VCA API-change: return created VCAs (handy for Lua scripts)
[ardour.git] / libs / ardour / ardour / lua_script_params.h
index f8c6b2acc39f39ad6a0be0685f4b36852bcdde5a..c326ef703fbd4594cb5467640eed8ad447b357a6 100644 (file)
 #ifndef _ardour_lua_script_params_h_
 #define _ardour_lua_script_params_h_
 
+#include "lua/luastate.h"
+
 #include "ardour/libardour_visibility.h"
 #include "ardour/luascripting.h"
-#include "LuaBridge/LuaBridge.h"
+
+namespace luabridge {
+       class LuaRef;
+}
 
 /* Semantically these are static functions of the LuaScripting class
  * but are kept separately to minimize header includes.
@@ -33,8 +38,9 @@
  */
 namespace ARDOUR { namespace LuaScriptParams {
 
-       LIBARDOUR_API LuaScriptParamList script_params (LuaScriptInfoPtr, const std::string &);
+       LIBARDOUR_API LuaScriptParamList script_params (const LuaScriptInfoPtr&, const std::string &);
        LIBARDOUR_API LuaScriptParamList script_params (const std::string &, const std::string &, bool file=true);
+       LIBARDOUR_API LuaScriptParamList script_params (LuaState&, const std::string &, const std::string &, bool file=true);
        LIBARDOUR_API void params_to_ref (luabridge::LuaRef *tbl_args, const LuaScriptParamList&);
        LIBARDOUR_API void ref_to_params (LuaScriptParamList&, luabridge::LuaRef *tbl_args);