Changeset View
Changeset View
Standalone View
Standalone View
src/init.h
Show All 20 Lines | |||||
namespace boost { | namespace boost { | ||||
class thread_group; | class thread_group; | ||||
} // namespace boost | } // namespace boost | ||||
void StartShutdown(); | void StartShutdown(); | ||||
bool ShutdownRequested(); | bool ShutdownRequested(); | ||||
/** Interrupt threads */ | /** Interrupt threads */ | ||||
void Interrupt(boost::thread_group &threadGroup); | void Interrupt(); | ||||
void Shutdown(); | void Shutdown(); | ||||
//! Initialize the logging infrastructure | //! Initialize the logging infrastructure | ||||
void InitLogging(); | void InitLogging(); | ||||
//! Parameter interaction: change current parameters depending on various rules | //! Parameter interaction: change current parameters depending on various rules | ||||
void InitParameterInteraction(); | void InitParameterInteraction(); | ||||
/** | /** | ||||
* Initialize bitcoin: Basic context setup. | * Initialize bitcoin: Basic context setup. | ||||
Show All 28 Lines | |||||
bool AppInitLockDataDirectory(); | bool AppInitLockDataDirectory(); | ||||
/** | /** | ||||
* Bitcoin main initialization. | * Bitcoin main initialization. | ||||
* @note This should only be done after daemonization. | * @note This should only be done after daemonization. | ||||
* @pre Parameters should be parsed and config file should be read, | * @pre Parameters should be parsed and config file should be read, | ||||
* AppInitLockDataDirectory should have been called. | * AppInitLockDataDirectory should have been called. | ||||
*/ | */ | ||||
bool AppInitMain(Config &config, | bool AppInitMain(Config &config, | ||||
HTTPRPCRequestProcessor &httpRPCRequestProcessor, | HTTPRPCRequestProcessor &httpRPCRequestProcessor); | ||||
boost::thread_group &threadGroup, CScheduler &scheduler); | |||||
/** The help message mode determines what help message to show */ | /** The help message mode determines what help message to show */ | ||||
enum HelpMessageMode { HMM_BITCOIND, HMM_BITCOIN_QT }; | enum HelpMessageMode { HMM_BITCOIND, HMM_BITCOIN_QT }; | ||||
/** Help for options shared between UI and daemon (for -help) */ | /** Help for options shared between UI and daemon (for -help) */ | ||||
std::string HelpMessage(HelpMessageMode mode); | std::string HelpMessage(HelpMessageMode mode); | ||||
/** Returns licensing information (for -version) */ | /** Returns licensing information (for -version) */ | ||||
std::string LicenseInfo(); | std::string LicenseInfo(); | ||||
#endif // BITCOIN_INIT_H | #endif // BITCOIN_INIT_H |