diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-07 01:56:36 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-07 02:40:52 +0200 |
commit | 771a4a4e0c9b6653083f44081a81964c802eb549 (patch) | |
tree | 78e6faa13aa0ae86483e3f1f52c5cdf718d3e8f6 | |
parent | 8642e916dbd68e146c75bd825c8eaccd21762094 (diff) |
Add Lua bindings for RegionMap and region list
-rw-r--r-- | libs/ardour/luabindings.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/luabindings.cc b/libs/ardour/luabindings.cc index 3125ab1fe6..e2d3bf3554 100644 --- a/libs/ardour/luabindings.cc +++ b/libs/ardour/luabindings.cc @@ -1526,6 +1526,10 @@ LuaBindings::common (lua_State* L) .addVoidPtrConstructor<std::list<boost::shared_ptr <Region> > > () .endClass () + // RegionFactory::RegionMap + .beginStdMap <PBD::ID,boost::shared_ptr<Region>> ("RegionMap") + .endClass () + // typedef std::list<boost::shared_ptr<Processor> > ProcessorList; .beginStdList <boost::shared_ptr<Processor> > ("ProcessorList") .endClass () @@ -2020,6 +2024,7 @@ LuaBindings::common (lua_State* L) .beginClass <RegionFactory> ("RegionFactory") .addStaticFunction ("region_by_id", &RegionFactory::region_by_id) + .addStaticFunction ("regions", &RegionFactory::regions) .endClass () /* session enums (rt-safe, common) */ |