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 | ||||
// Copyright (c) 2018 The Bitcoin developers | // Copyright (c) 2018 The Bitcoin 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 <util.h> | |||||
#include <memory> | #include <memory> | ||||
#include <string> | #include <string> | ||||
class Config; | class Config; | ||||
class CScheduler; | class CScheduler; | ||||
class CWallet; | class CWallet; | ||||
class HTTPRPCRequestProcessor; | class HTTPRPCRequestProcessor; | ||||
class RPCServer; | class RPCServer; | ||||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
* 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, RPCServer &rpcServer, | bool AppInitMain(Config &config, RPCServer &rpcServer, | ||||
HTTPRPCRequestProcessor &httpRPCRequestProcessor); | HTTPRPCRequestProcessor &httpRPCRequestProcessor); | ||||
/** The help message mode determines what help message to show */ | /** | ||||
enum class HelpMessageMode { BITCOIND, BITCOIN_QT }; | * Setup the arguments for gArgs. | ||||
*/ | |||||
void SetupServerArgs(); | |||||
/** Help for options shared between UI and daemon (for -help) */ | |||||
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 |