2018-07-27 00:36:45 +02:00
|
|
|
// Copyright (c) 2009-2018 The Bitcoin Core developers
|
2016-03-29 19:43:02 +02:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2018-03-22 15:19:44 +01:00
|
|
|
#ifndef BITCOIN_RPC_REGISTER_H
|
|
|
|
#define BITCOIN_RPC_REGISTER_H
|
2016-03-29 19:43:02 +02:00
|
|
|
|
|
|
|
/** These are in one header file to avoid creating tons of single-function
|
|
|
|
* headers for everything under src/rpc/ */
|
|
|
|
class CRPCTable;
|
|
|
|
|
|
|
|
/** Register block chain RPC commands */
|
|
|
|
void RegisterBlockchainRPCCommands(CRPCTable &tableRPC);
|
|
|
|
/** Register P2P networking RPC commands */
|
|
|
|
void RegisterNetRPCCommands(CRPCTable &tableRPC);
|
|
|
|
/** Register miscellaneous RPC commands */
|
|
|
|
void RegisterMiscRPCCommands(CRPCTable &tableRPC);
|
|
|
|
/** Register mining RPC commands */
|
|
|
|
void RegisterMiningRPCCommands(CRPCTable &tableRPC);
|
|
|
|
/** Register raw transaction RPC commands */
|
|
|
|
void RegisterRawTransactionRPCCommands(CRPCTable &tableRPC);
|
|
|
|
|
2016-06-07 18:42:42 +02:00
|
|
|
static inline void RegisterAllCoreRPCCommands(CRPCTable &t)
|
2016-03-29 19:43:02 +02:00
|
|
|
{
|
2016-06-07 18:42:42 +02:00
|
|
|
RegisterBlockchainRPCCommands(t);
|
|
|
|
RegisterNetRPCCommands(t);
|
|
|
|
RegisterMiscRPCCommands(t);
|
|
|
|
RegisterMiningRPCCommands(t);
|
|
|
|
RegisterRawTransactionRPCCommands(t);
|
2016-03-29 19:43:02 +02:00
|
|
|
}
|
|
|
|
|
2018-03-22 15:19:44 +01:00
|
|
|
#endif // BITCOIN_RPC_REGISTER_H
|