diff options
Diffstat (limited to 'src/httprpc.h')
-rw-r--r-- | src/httprpc.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/httprpc.h b/src/httprpc.h index ccae29b45d..404d13083f 100644 --- a/src/httprpc.h +++ b/src/httprpc.h @@ -1,17 +1,16 @@ -// Copyright (c) 2015-2017 The Bitcoin Core developers +// Copyright (c) 2015-2021 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_HTTPRPC_H #define BITCOIN_HTTPRPC_H -#include <string> -#include <map> +#include <any> /** Start HTTP RPC subsystem. * Precondition; HTTP and RPC has been started. */ -bool StartHTTPRPC(); +bool StartHTTPRPC(const std::any& context); /** Interrupt HTTP RPC subsystem. */ void InterruptHTTPRPC(); @@ -23,7 +22,7 @@ void StopHTTPRPC(); /** Start HTTP REST subsystem. * Precondition; HTTP and RPC has been started. */ -bool StartREST(); +void StartREST(const std::any& context); /** Interrupt RPC REST subsystem. */ void InterruptREST(); @@ -32,4 +31,4 @@ void InterruptREST(); */ void StopREST(); -#endif +#endif // BITCOIN_HTTPRPC_H |