Move static function out of header-file, fix -Wunused-function
This commit is contained in:
parent
0a0dd8de13
commit
fc4a0a9852
|
@ -92,10 +92,6 @@ class HttpGet {
|
|||
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
|
||||
|
|
|
@ -363,6 +363,8 @@ const char *luasignalstr[] = {
|
|||
}; // 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 {
|
||||
|
||||
|
@ -744,7 +746,7 @@ LuaInstance::register_classes (lua_State* L)
|
|||
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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user