diff options
author | Robin Gareus <robin@gareus.org> | 2016-07-18 16:10:35 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-07-18 16:46:59 +0200 |
commit | e9a2eea8678708620d80d14290d234b29472044d (patch) | |
tree | a13d30aed70e82c2d9cb36185257a7a33157f569 /gtk2_ardour/luainstance.cc | |
parent | 004b57e9f67c6b818357759005c8e53b041dead4 (diff) |
remove old a3_curl API and switch some curl calls
Keep freesound-moocher as is until freesound-apiv2 branch is merged
or rebased.
Diffstat (limited to 'gtk2_ardour/luainstance.cc')
-rw-r--r-- | gtk2_ardour/luainstance.cc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/gtk2_ardour/luainstance.cc b/gtk2_ardour/luainstance.cc index 4d3ea5f777..fe91bb9562 100644 --- a/gtk2_ardour/luainstance.cc +++ b/gtk2_ardour/luainstance.cc @@ -30,6 +30,7 @@ #include "LuaBridge/LuaBridge.h" +#include "ardour_http.h" #include "ardour_ui.h" #include "public_editor.h" #include "region_selection.h" @@ -347,16 +348,6 @@ const char *luasignalstr[] = { }; // 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) @@ -549,7 +540,7 @@ LuaInstance::register_classes (lua_State* L) luabridge::getGlobalNamespace (L) .beginNamespace ("ArdourUI") - .addFunction ("curl_http_get", &lua_http_get) + .addFunction ("http_get", (std::string (*)(const std::string&))&ArdourCurl::http_get) .beginStdList <ArdourMarker*> ("ArdourMarkerList") .endClass () |