Add Lua bindings for plugin re-ordering
authorRobin Gareus <robin@gareus.org>
Wed, 15 Feb 2017 17:12:28 +0000 (18:12 +0100)
committerRobin Gareus <robin@gareus.org>
Wed, 15 Feb 2017 17:12:28 +0000 (18:12 +0100)
libs/ardour/luabindings.cc

index da3fed761e9b4c2a0bbd5ab0c3f6334b5eb942f0..6b9675900e028029dc8b0ed5103accd539b1373e 100644 (file)
@@ -950,7 +950,9 @@ LuaBindings::common (lua_State* L)
                .addFunction ("nth_send", &Route::nth_send)
                .addFunction ("add_processor_by_index", &Route::add_processor_by_index)
                .addFunction ("remove_processor", &Route::remove_processor)
+               .addFunction ("remove_processors", &Route::remove_processors)
                .addFunction ("replace_processor", &Route::replace_processor)
+               .addFunction ("reorder_processors", &Route::reorder_processors)
                .addFunction ("the_instrument", &Route::the_instrument)
                .addFunction ("n_inputs", &Route::n_inputs)
                .addFunction ("n_outputs", &Route::n_outputs)
@@ -1424,6 +1426,10 @@ LuaBindings::common (lua_State* L)
                .addVoidPtrConstructor<std::list<boost::shared_ptr <Region> > > ()
                .endClass ()
 
+               // typedef std::list<boost::shared_ptr<Processor> > ProcessorList;
+               .beginStdList <boost::shared_ptr<Processor> > ("ProcessorList")
+               .endClass ()
+
                //std::list<boost::shared_ptr<Port> > PortList;
                .beginConstStdList <boost::shared_ptr<Port> > ("PortList")
                .endClass ()