Add Lua bindings for convenient Glib methods
This commit is contained in:
parent
f08b90f368
commit
807061f96f
@ -2378,6 +2378,8 @@ LuaBindings::common (lua_State* L)
|
||||
.addCFunction ("color_to_rgba", ARDOUR::LuaAPI::color_to_rgba)
|
||||
.addFunction ("ascii_dtostr", ARDOUR::LuaAPI::ascii_dtostr)
|
||||
.addFunction ("usleep", Glib::usleep)
|
||||
.addFunction ("file_test", Glib::file_test)
|
||||
.addFunction ("file_get_contents", Glib::file_get_contents)
|
||||
.addFunction ("monotonic_time", ::g_get_monotonic_time)
|
||||
.addCFunction ("build_filename", ARDOUR::LuaAPI::build_filename)
|
||||
.addFunction ("new_noteptr", ARDOUR::LuaAPI::new_noteptr)
|
||||
@ -2385,6 +2387,14 @@ LuaBindings::common (lua_State* L)
|
||||
.addCFunction ("sample_to_timecode", ARDOUR::LuaAPI::sample_to_timecode)
|
||||
.addCFunction ("timecode_to_sample", ARDOUR::LuaAPI::timecode_to_sample)
|
||||
|
||||
.beginNamespace ("FileTest")
|
||||
.addConst ("IsRegular", Glib::FILE_TEST_IS_REGULAR)
|
||||
.addConst ("IsSymlink", Glib::FILE_TEST_IS_SYMLINK)
|
||||
.addConst ("IsDir", Glib::FILE_TEST_IS_DIR)
|
||||
.addConst ("IsExecutable", Glib::FILE_TEST_IS_EXECUTABLE)
|
||||
.addConst ("Exists", Glib::FILE_TEST_EXISTS)
|
||||
.endNamespace () // end LuaAPI
|
||||
|
||||
.beginClass <ARDOUR::LuaAPI::Vamp> ("Vamp")
|
||||
.addConstructor <void (*) (const std::string&, float)> ()
|
||||
.addStaticFunction ("list_plugins", &ARDOUR::LuaAPI::Vamp::list_plugins)
|
||||
|
Loading…
Reference in New Issue
Block a user