register.h raw

   1  // Copyright (c) 2009-2022 The Limenka developers
   2  // Distributed under the MIT software license, see the accompanying
   3  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
   4  
   5  #ifndef LIMENKA_RPC_REGISTER_H
   6  #define LIMENKA_RPC_REGISTER_H
   7  
   8  #include <limenka-build-config.h> // IWYU pragma: keep
   9  
  10  /** These are in one header file to avoid creating tons of single-function
  11   * headers for everything under src/rpc/ */
  12  class CRPCTable;
  13  
  14  void RegisterBlockchainRPCCommands(CRPCTable &tableRPC);
  15  void RegisterFeeRPCCommands(CRPCTable&);
  16  void RegisterMempoolRPCCommands(CRPCTable&);
  17  void RegisterMiningRPCCommands(CRPCTable &tableRPC);
  18  void RegisterNodeRPCCommands(CRPCTable&);
  19  void RegisterNetRPCCommands(CRPCTable&);
  20  void RegisterOutputScriptRPCCommands(CRPCTable&);
  21  void RegisterRawTransactionRPCCommands(CRPCTable &tableRPC);
  22  void RegisterSignMessageRPCCommands(CRPCTable&);
  23  void RegisterSignerRPCCommands(CRPCTable &tableRPC);
  24  void RegisterTxoutProofRPCCommands(CRPCTable&);
  25  void RegisterStatsRPCCommands(CRPCTable&);
  26  
  27  static inline void RegisterAllCoreRPCCommands(CRPCTable &t)
  28  {
  29      RegisterBlockchainRPCCommands(t);
  30      RegisterFeeRPCCommands(t);
  31      RegisterMempoolRPCCommands(t);
  32      RegisterMiningRPCCommands(t);
  33      RegisterNodeRPCCommands(t);
  34      RegisterNetRPCCommands(t);
  35      RegisterOutputScriptRPCCommands(t);
  36      RegisterRawTransactionRPCCommands(t);
  37      RegisterSignMessageRPCCommands(t);
  38  #ifdef ENABLE_EXTERNAL_SIGNER
  39      RegisterSignerRPCCommands(t);
  40  #endif // ENABLE_EXTERNAL_SIGNER
  41      RegisterTxoutProofRPCCommands(t);
  42      RegisterStatsRPCCommands(t);
  43  }
  44  
  45  #endif // LIMENKA_RPC_REGISTER_H
  46