Changeset View
Changeset View
Standalone View
Standalone View
src/init.h
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_INIT_H | #ifndef BITCOIN_INIT_H | ||||
#define BITCOIN_INIT_H | #define BITCOIN_INIT_H | ||||
#include <string> | #include <string> | ||||
class Config; | class Config; | ||||
class CScheduler; | class CScheduler; | ||||
class CWallet; | class CWallet; | ||||
class HTTPRPCRequestProcessor; | |||||
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 */ | ||||
Show All 24 Lines | |||||
*/ | */ | ||||
bool AppInitSanityChecks(); | bool AppInitSanityChecks(); | ||||
/** | /** | ||||
* Bitcoin core main initialization. | * Bitcoin core 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, | ||||
* AppInitSanityChecks should have been called. | * AppInitSanityChecks should have been called. | ||||
*/ | */ | ||||
bool AppInitMain(Config &config, boost::thread_group &threadGroup, | bool AppInitMain(Config &config, | ||||
CScheduler &scheduler); | 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 |