Set BCLog::LIBEVENT correctly for old libevent versions.

This commit is contained in:
John Newbery
2017-04-10 10:27:36 -04:00
parent e19586a8a9
commit 4d9950d3bc
2 changed files with 24 additions and 8 deletions

View File

@@ -32,6 +32,10 @@ void InterruptHTTPServer();
/** Stop HTTP server */
void StopHTTPServer();
/** Change logging level for libevent. Removes BCLog::LIBEVENT from logCategories if
* libevent doesn't support debug logging.*/
bool UpdateHTTPServerLogging(bool enable);
/** Handler for requests to a certain HTTP path */
typedef std::function<bool(HTTPRequest* req, const std::string &)> HTTPRequestHandler;
/** Register handler for prefix.