diff options
author | Robin Gareus <robin@gareus.org> | 2016-08-06 22:12:39 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-08-06 22:12:39 +0200 |
commit | d04ca6d4149b602a193da8fbb88c03fef94f9e5d (patch) | |
tree | d559d3a306c0918fd908969778791a47e2381f10 /libs | |
parent | 43cd3fd7606bc765c6ff3af43eada389eddb1beb (diff) |
a few more Location related lua bindings
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/ardour/location.h | 3 | ||||
-rw-r--r-- | libs/ardour/luabindings.cc | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/libs/ardour/ardour/location.h b/libs/ardour/ardour/location.h index d31e9dccce..6b61dae746 100644 --- a/libs/ardour/ardour/location.h +++ b/libs/ardour/ardour/location.h @@ -173,7 +173,8 @@ class LIBARDOUR_API Locations : public SessionHandleRef, public PBD::StatefulDes Locations (Session &); ~Locations (); - const LocationList& list() { return locations; } + const LocationList& list () const { return locations; } + LocationList list () { return locations; } void add (Location *, bool make_current = false); void remove (Location *); diff --git a/libs/ardour/luabindings.cc b/libs/ardour/luabindings.cc index 9f249578ab..0bbfb11624 100644 --- a/libs/ardour/luabindings.cc +++ b/libs/ardour/luabindings.cc @@ -491,6 +491,7 @@ LuaBindings::common (lua_State* L) .deriveClass <Location, PBD::StatefulDestructible> ("Location") .addFunction ("locked", &Location::locked) .addFunction ("lock", &Location::lock) + .addFunction ("unlock", &Location::unlock) .addFunction ("start", &Location::start) .addFunction ("_end", &Location::end) // XXX "end" is a lua reserved word .addFunction ("length", &Location::length) @@ -498,9 +499,19 @@ LuaBindings::common (lua_State* L) .addFunction ("set_end", &Location::set_end) .addFunction ("set_length", &Location::set) .addFunction ("move_to", &Location::move_to) + .addFunction ("matches", &Location::matches) + .addFunction ("flags", &Location::flags) + .addFunction ("is_auto_punch", &Location::is_auto_punch) + .addFunction ("is_auto_loop", &Location::is_auto_loop) + .addFunction ("is_mark", &Location::is_mark) + .addFunction ("is_hidden", &Location::is_hidden) + .addFunction ("is_cd_marker", &Location::is_cd_marker) + .addFunction ("is_session_range", &Location::is_session_range) + .addFunction ("is_range_marker", &Location::is_range_marker) .endClass () .deriveClass <Locations, PBD::StatefulDestructible> ("Locations") + .addFunction ("list", static_cast<Locations::LocationList (Locations::*)()>(&Locations::list)) .addFunction ("auto_loop_location", &Locations::auto_loop_location) .addFunction ("auto_punch_location", &Locations::auto_punch_location) .addFunction ("session_range_location", &Locations::session_range_location) |