mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
refactor: replace util::Ref by std::any (C++17)
This commit is contained in:
@@ -5,14 +5,12 @@
|
||||
#ifndef BITCOIN_HTTPRPC_H
|
||||
#define BITCOIN_HTTPRPC_H
|
||||
|
||||
namespace util {
|
||||
class Ref;
|
||||
} // namespace util
|
||||
#include <any>
|
||||
|
||||
/** Start HTTP RPC subsystem.
|
||||
* Precondition; HTTP and RPC has been started.
|
||||
*/
|
||||
bool StartHTTPRPC(const util::Ref& context);
|
||||
bool StartHTTPRPC(const std::any& context);
|
||||
/** Interrupt HTTP RPC subsystem.
|
||||
*/
|
||||
void InterruptHTTPRPC();
|
||||
@@ -24,7 +22,7 @@ void StopHTTPRPC();
|
||||
/** Start HTTP REST subsystem.
|
||||
* Precondition; HTTP and RPC has been started.
|
||||
*/
|
||||
void StartREST(const util::Ref& context);
|
||||
void StartREST(const std::any& context);
|
||||
/** Interrupt RPC REST subsystem.
|
||||
*/
|
||||
void InterruptREST();
|
||||
|
||||
Reference in New Issue
Block a user