char* http_get (const char* url, int* status, bool with_error_logging);
std::string http_get (const std::string& url, bool with_error_logging);
-/* For use from Lua scripts */
-
-static char* http_get_unlogged (const char* url, int* status) { return http_get (url, status, false); }
-static std::string http_get_unlogged (const std::string& url) { return http_get (url, false); }
} // namespace
}; // namespace
+static std::string http_get_unlogged (const std::string& url) { return ArdourCurl::http_get (url, false); }
+
/** special cases for Ardour's Mixer UI */
namespace LuaMixer {
luabridge::getGlobalNamespace (L)
.beginNamespace ("ArdourUI")
- .addFunction ("http_get", (std::string (*)(const std::string&))&ArdourCurl::http_get_unlogged)
+ .addFunction ("http_get", &http_get_unlogged)
.addFunction ("processor_selection", &LuaMixer::processor_selection)