expose PBD::open_uri bindings to lua
This commit is contained in:
parent
9c2682d6f1
commit
7d7755ffb6
@ -20,6 +20,7 @@
|
||||
|
||||
#include "timecode/bbt_time.h"
|
||||
#include "pbd/stateful_diff_command.h"
|
||||
#include "pbd/openuri.h"
|
||||
#include "evoral/Control.hpp"
|
||||
#include "evoral/ControlList.hpp"
|
||||
#include "evoral/Range.hpp"
|
||||
@ -245,6 +246,10 @@ LuaBindings::common (lua_State* L)
|
||||
{
|
||||
luabridge::getGlobalNamespace (L)
|
||||
.beginNamespace ("PBD")
|
||||
|
||||
.addFunction ("open_uri", (bool (*) (const std::string&))&PBD::open_uri)
|
||||
.addFunction ("open_uri", &PBD::open_folder)
|
||||
|
||||
.beginClass <PBD::ID> ("ID")
|
||||
.addConstructor <void (*) (std::string)> ()
|
||||
.addFunction ("to_s", &PBD::ID::to_s) // TODO special case LUA __tostring ?
|
||||
|
Loading…
Reference in New Issue
Block a user