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
struct
NodeContext
;
11
12
namespace
interfaces
{
13
class
Chain;
14
class
Echo;
15
class
Ipc;
16
class
Node;
17
class
WalletClient;
18
26
class
Init
27
{
28
public
:
29
virtual
~Init
() =
default
;
30
virtual
std::unique_ptr<Node>
makeNode
();
31
virtual
std::unique_ptr<Chain>
makeChain
();
32
virtual
std::unique_ptr<WalletClient>
makeWalletClient
(
Chain
& chain);
33
virtual
std::unique_ptr<Echo>
makeEcho
();
34
virtual
Ipc
*
ipc
();
35
};
36
43
std::unique_ptr<Init>
MakeNodeInit
(
NodeContext
&
node
,
int
argc,
char
* argv[],
int
& exit_status);
44
46
std::unique_ptr<Init>
MakeWalletInit
(
int
argc,
char
* argv[],
int
& exit_status);
47
49
std::unique_ptr<Init>
MakeGuiInit
(
int
argc,
char
* argv[]);
50
}
// namespace interfaces
51
52
#endif
// BITCOIN_INTERFACES_INIT_H
interfaces::Chain
Interface giving clients (wallet processes, maybe other analysis tools in the future) ability to acce...
Definition:
chain.h:93
interfaces::Init
Initial interface created when a process is first started, and used to give and get access to other i...
Definition:
init.h:27
interfaces::Init::makeNode
virtual std::unique_ptr< Node > makeNode()
Definition:
init.cpp:12
interfaces::Init::makeChain
virtual std::unique_ptr< Chain > makeChain()
Definition:
init.cpp:13
interfaces::Init::~Init
virtual ~Init()=default
interfaces::Init::ipc
virtual Ipc * ipc()
Definition:
init.cpp:16
interfaces::Init::makeEcho
virtual std::unique_ptr< Echo > makeEcho()
Definition:
init.cpp:15
interfaces::Init::makeWalletClient
virtual std::unique_ptr< WalletClient > makeWalletClient(Chain &chain)
Definition:
init.cpp:14
interfaces::Ipc
Interface providing access to interprocess-communication (IPC) functionality.
Definition:
ipc.h:45
interfaces
Definition:
dummywallet.cpp:11
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::MakeNodeInit
std::unique_ptr< Init > MakeNodeInit(NodeContext &node, int argc, char *argv[], int &exit_status)
Return implementation of Init interface for the node process.
Definition:
bitcoin-node.cpp:45
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:
interfaces.cpp:68
NodeContext
NodeContext struct containing references to chain state and connection state.
Definition:
context.h:39
Generated on Mon Nov 8 2021 14:20:05 for Bitcoin Core by
1.9.2