You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

register.h 1.1KB

1234567891011121314151617181920212223242526272829303132
  1. // Copyright (c) 2009-2016 The Starwels developers
  2. // Distributed under the MIT software license, see the accompanying
  3. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  4. #ifndef STARWELS_RPCREGISTER_H
  5. #define STARWELS_RPCREGISTER_H
  6. /** These are in one header file to avoid creating tons of single-function
  7. * headers for everything under src/rpc/ */
  8. class CRPCTable;
  9. /** Register block chain RPC commands */
  10. void RegisterBlockchainRPCCommands(CRPCTable &tableRPC);
  11. /** Register P2P networking RPC commands */
  12. void RegisterNetRPCCommands(CRPCTable &tableRPC);
  13. /** Register miscellaneous RPC commands */
  14. void RegisterMiscRPCCommands(CRPCTable &tableRPC);
  15. /** Register mining RPC commands */
  16. void RegisterMiningRPCCommands(CRPCTable &tableRPC);
  17. /** Register raw transaction RPC commands */
  18. void RegisterRawTransactionRPCCommands(CRPCTable &tableRPC);
  19. static inline void RegisterAllCoreRPCCommands(CRPCTable &t)
  20. {
  21. RegisterBlockchainRPCCommands(t);
  22. RegisterNetRPCCommands(t);
  23. RegisterMiscRPCCommands(t);
  24. RegisterMiningRPCCommands(t);
  25. RegisterRawTransactionRPCCommands(t);
  26. }
  27. #endif