mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Set BCLog::LIBEVENT correctly for old libevent versions.
This commit is contained in:
parent
e19586a8a9
commit
4d9950d3bc
2 changed files with 24 additions and 8 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue