diff options
author | Robin Gareus <robin@gareus.org> | 2016-07-17 17:03:48 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-07-17 17:03:48 +0200 |
commit | 9c2682d6f177c485bdc5827bc1d887387ab75aeb (patch) | |
tree | c3e0a6feebe32f8dbe88e5c541eb4a426ca3f891 /gtk2_ardour/luainstance.cc | |
parent | 3458844878baeff66246a6611b6ba227e8a4f77c (diff) |
quick hack to test SSL in bundles
this needs to be reverted, and we need a proper curl wrapper,
shared by video-timeline AND freesound moocher
Diffstat (limited to 'gtk2_ardour/luainstance.cc')
-rw-r--r-- | gtk2_ardour/luainstance.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk2_ardour/luainstance.cc b/gtk2_ardour/luainstance.cc index 5893c15fd9..4d3ea5f777 100644 --- a/gtk2_ardour/luainstance.cc +++ b/gtk2_ardour/luainstance.cc @@ -39,6 +39,7 @@ #include "time_axis_view.h" #include "selection.h" #include "script_selector.h" +#include "utils_videotl.h" #include "pbd/i18n.h" @@ -345,6 +346,17 @@ const char *luasignalstr[] = { #undef ENGINE }; // namespace + +std::string lua_http_get (const char *u) { + char *rv = a3_curl_http_get (u, NULL); + if (!rv) { + return ""; + } + std::string s (rv); + free (rv); + return s; +} + //////////////////////////////////////////////////////////////////////////////// #define xstr(s) stringify(s) @@ -537,6 +549,8 @@ LuaInstance::register_classes (lua_State* L) luabridge::getGlobalNamespace (L) .beginNamespace ("ArdourUI") + .addFunction ("curl_http_get", &lua_http_get) + .beginStdList <ArdourMarker*> ("ArdourMarkerList") .endClass () |