13
0

Add Lua binding to get a file's basename

This commit is contained in:
Robin Gareus 2020-11-30 22:15:26 +01:00
parent b043336c86
commit d5a2f6b2e0
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -2548,6 +2548,7 @@ LuaBindings::common (lua_State* L)
.addFunction ("usleep", Glib::usleep) .addFunction ("usleep", Glib::usleep)
.addFunction ("file_test", Glib::file_test) .addFunction ("file_test", Glib::file_test)
.addFunction ("file_get_contents", Glib::file_get_contents) .addFunction ("file_get_contents", Glib::file_get_contents)
.addFunction ("path_get_basename", Glib::path_get_basename)
.addFunction ("monotonic_time", ::g_get_monotonic_time) .addFunction ("monotonic_time", ::g_get_monotonic_time)
.addCFunction ("build_filename", ARDOUR::LuaAPI::build_filename) .addCFunction ("build_filename", ARDOUR::LuaAPI::build_filename)
.addFunction ("new_noteptr", ARDOUR::LuaAPI::new_noteptr) .addFunction ("new_noteptr", ARDOUR::LuaAPI::new_noteptr)