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.

init.h 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Copyright (c) 2009-2010 Satoshi Nakamoto
  2. // Copyright (c) 2009-2015 The Bitcoin Core developers
  3. // Distributed under the MIT software license, see the accompanying
  4. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  5. #ifndef BITCOIN_INIT_H
  6. #define BITCOIN_INIT_H
  7. #include <string>
  8. class CScheduler;
  9. class CWallet;
  10. namespace boost
  11. {
  12. class thread_group;
  13. } // namespace boost
  14. extern CWallet* pwalletMain;
  15. void StartShutdown();
  16. bool ShutdownRequested();
  17. /** Interrupt threads */
  18. void Interrupt(boost::thread_group& threadGroup);
  19. void Shutdown();
  20. //!Initialize the logging infrastructure
  21. void InitLogging();
  22. //!Parameter interaction: change current parameters depending on various rules
  23. void InitParameterInteraction();
  24. bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler);
  25. /** The help message mode determines what help message to show */
  26. enum HelpMessageMode {
  27. HMM_BITCOIND,
  28. HMM_BITCOIN_QT
  29. };
  30. /** Help for options shared between UI and daemon (for -help) */
  31. std::string HelpMessage(HelpMessageMode mode);
  32. /** Returns licensing information (for -version) */
  33. std::string LicenseInfo();
  34. #endif // BITCOIN_INIT_H