Bitcoin Core
22.99.0
P2P Digital Currency
src
interfaces
init.h
Go to the documentation of this file.
1
// Copyright (c) 2021 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_INTERFACES_INIT_H
6
#define BITCOIN_INTERFACES_INIT_H
7
8
#include <memory>
9
10
namespace
node
{
11
struct
NodeContext;
12
}
// namespace node
13
14
namespace
interfaces
{
15
class
Chain;
16
class
Echo;
17
class
Ipc;
18
class
Node;
19
class
WalletLoader;
20
28
class
Init
29
{
30
public
:
31
virtual
~Init
() =
default
;
32
virtual
std::unique_ptr<Node>
makeNode
();
33
virtual
std::unique_ptr<Chain>
makeChain
();
34
virtual
std::unique_ptr<WalletLoader>
makeWalletLoader
(
Chain
& chain);
35
virtual
std::unique_ptr<Echo>
makeEcho
();
36
virtual
Ipc
*
ipc
();
37
};
38
45
std::unique_ptr<Init>
MakeNodeInit
(
node::NodeContext
&
node
,
int
argc,
char
* argv[],
int
& exit_status);
46
48
std::unique_ptr<Init>
MakeWalletInit
(
int
argc,
char
* argv[],
int
& exit_status);
49
51
std::unique_ptr<Init>
MakeGuiInit
(
int
argc,
char
* argv[]);
52
}
// namespace interfaces
53
54
#endif // BITCOIN_INTERFACES_INIT_H
interfaces
Definition:
dummywallet.cpp:10
interfaces::Init::makeChain
virtual std::unique_ptr< Chain > makeChain()
Definition:
init.cpp:13
interfaces::Init::makeEcho
virtual std::unique_ptr< Echo > makeEcho()
Definition:
init.cpp:15
node::NodeContext
NodeContext struct containing references to chain state and connection state.
Definition:
context.h:40
interfaces::Init
Initial interface created when a process is first started, and used to give and get access to other i...
Definition:
init.h:28
interfaces::MakeNodeInit
std::unique_ptr< Init > MakeNodeInit(node::NodeContext &node, int argc, char *argv[], int &exit_status)
Return implementation of Init interface for the node process.
Definition:
bitcoin-node.cpp:45
interfaces::MakeGuiInit
std::unique_ptr< Init > MakeGuiInit(int argc, char *argv[])
Return implementation of Init interface for the gui process.
Definition:
bitcoin-gui.cpp:43
interfaces::Chain
Interface giving clients (wallet processes, maybe other analysis tools in the future) ability to acce...
Definition:
chain.h:94
interfaces::Init::ipc
virtual Ipc * ipc()
Definition:
init.cpp:16
interfaces::Init::makeNode
virtual std::unique_ptr< Node > makeNode()
Definition:
init.cpp:12
interfaces::Init::~Init
virtual ~Init()=default
interfaces::MakeWalletInit
std::unique_ptr< Init > MakeWalletInit(int argc, char *argv[], int &exit_status)
Return implementation of Init interface for the wallet process.
Definition:
bitcoin-wallet.cpp:8
node
Definition:
init.h:22
interfaces::Init::makeWalletLoader
virtual std::unique_ptr< WalletLoader > makeWalletLoader(Chain &chain)
Definition:
init.cpp:14
interfaces::Ipc
Interface providing access to interprocess-communication (IPC) functionality.
Definition:
ipc.h:44
Generated on Fri Feb 18 2022 20:03:18 for Bitcoin Core by
1.8.17