]>
Commit | Line | Data |
---|---|---|
8bd66202 | 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto |
f914f1a7 | 2 | // Copyright (c) 2009-2014 The Bitcoin Core developers |
c5b390b6 | 3 | // Distributed under the MIT software license, see the accompanying |
bc909a7a | 4 | // file COPYING or https://www.opensource.org/licenses/mit-license.php . |
51ed9ec9 | 5 | |
223b6f1b WL |
6 | #ifndef BITCOIN_INIT_H |
7 | #define BITCOIN_INIT_H | |
8bd66202 | 8 | |
722fa283 | 9 | #include <string> |
722fa283 | 10 | |
2dc35992 | 11 | #include "zcash/JoinSplit.hpp" |
4f1c3798 | 12 | |
ddd0acd3 | 13 | class CScheduler; |
722fa283 | 14 | class CWallet; |
ed6d0b5f | 15 | |
20e01b1a PW |
16 | namespace boost |
17 | { | |
18 | class thread_group; | |
e10dcf27 | 19 | } // namespace boost |
51ed9ec9 | 20 | |
64c7ee7e | 21 | extern CWallet* pwalletMain; |
2dc35992 | 22 | extern ZCJoinSplit* pzcashParams; |
64c7ee7e | 23 | |
9247134e | 24 | void StartShutdown(); |
723035bb | 25 | bool ShutdownRequested(); |
afd64f76 WL |
26 | /** Interrupt threads */ |
27 | void Interrupt(boost::thread_group& threadGroup); | |
b31499ec | 28 | void Shutdown(); |
b2a98c42 | 29 | bool AppInitNetworking(); |
ddd0acd3 | 30 | bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler); |
2a03a390 | 31 | |
c5b390b6 | 32 | /** The help message mode determines what help message to show */ |
20e01b1a | 33 | enum HelpMessageMode { |
07cf4264 | 34 | HMM_BITCOIND |
2a03a390 WL |
35 | }; |
36 | ||
45615af2 | 37 | /** Help for options shared between UI and daemon (for -help) */ |
2a03a390 | 38 | std::string HelpMessage(HelpMessageMode mode); |
223b6f1b | 39 | |
093303a8 | 40 | #endif // BITCOIN_INIT_H |