#include "time_axis_view.h"
#include "selection.h"
#include "script_selector.h"
+#include "utils_videotl.h"
#include "pbd/i18n.h"
#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)
luabridge::getGlobalNamespace (L)
.beginNamespace ("ArdourUI")
+ .addFunction ("curl_http_get", &lua_http_get)
+
.beginStdList <ArdourMarker*> ("ArdourMarkerList")
.endClass ()
struct A3MemoryStruct chunk;
long int httpstatus;
if (status) *status = 0;
- //Glib::usleep(500000); return NULL; // TEST & DEBUG
- if (strncmp("http://", u, 7)) return NULL;
+ if (strncmp("http://", u, 7) && strncmp("https://", u, 8)) return NULL;
chunk.data=NULL;
chunk.size=0;