summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_http.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2018-06-02 13:24:17 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2018-06-02 13:24:31 -0400
commitf448041ec0a6ce5caead0829f309a06cabcdd156 (patch)
tree6583ff36a80f41a40f37ceb0bd2aeb1a838d5af1 /gtk2_ardour/ardour_http.h
parent820cbc8c4f79769d43e56f06ab79c92ce6d2363a (diff)
no error logging for CURL HTTP requests; future callers can request it if necessary
Diffstat (limited to 'gtk2_ardour/ardour_http.h')
-rw-r--r--gtk2_ardour/ardour_http.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/gtk2_ardour/ardour_http.h b/gtk2_ardour/ardour_http.h
index aa6b9f3936..41bb2a8f79 100644
--- a/gtk2_ardour/ardour_http.h
+++ b/gtk2_ardour/ardour_http.h
@@ -40,10 +40,10 @@ class HttpGet {
std::map<std::string, std::string> h;
};
- char* get (const char* url);
+ char* get (const char* url, bool with_error_logging = false);
- std::string get (const std::string& url) {
- char *rv = get (url.c_str ());
+ std::string get (const std::string& url, bool with_error_logging = false) {
+ char *rv = get (url.c_str (), with_error_logging);
return rv ? std::string (rv) : std::string ("");
}
@@ -89,9 +89,14 @@ class HttpGet {
static const char* ca_info;
};
-char* http_get (const char* url, int* status);
+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); }
-std::string http_get (const std::string& url);
} // namespace