Expose Locations::remove() to Lua

Clearing location markers is a frequent task and should be automizable. For
example it is handy to clear all the markers when restarting the recording
from scratch after a failed recording.
This commit is contained in:
Johannes Mueller 2016-09-04 15:29:41 +02:00 committed by Robin Gareus
parent 98d9887adb
commit e54ae02170

View File

@ -557,6 +557,7 @@ LuaBindings::common (lua_State* L)
.addFunction ("first_mark_after", &Locations::first_mark_after)
.addFunction ("first_mark_before", &Locations::first_mark_before)
.addFunction ("first_mark_at", &Locations::mark_at)
.addFunction ("remove", &Locations::remove)
.addRefFunction ("marks_either_side", &Locations::marks_either_side)
.addRefFunction ("find_all_between", &Locations::find_all_between)
.endClass ()