13
0

Add a Lua binding to determine Ardour version

This commit is contained in:
Robin Gareus 2021-05-13 02:51:17 +02:00
parent 8642f5476d
commit a01377f168
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -84,6 +84,7 @@
#include "ardour/region.h"
#include "ardour/region_factory.h"
#include "ardour/return.h"
#include "ardour/revision.h"
#include "ardour/route_group.h"
#include "ardour/send.h"
#include "ardour/session.h"
@ -757,6 +758,8 @@ LuaBindings::common (lua_State* L)
luabridge::getGlobalNamespace (L)
.beginNamespace ("ARDOUR")
.addConst ("revision", ARDOUR::revision)
.beginClass <InterThreadInfo> ("InterThreadInfo")
.addVoidConstructor ()
.addData ("done", const_cast<bool InterThreadInfo::*>(&InterThreadInfo::done))