mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 10:12:28 +02:00
signals: re-add forward-declares to interface headers
The real includes were only needed temporarily while supporting btcsignals as an alias for boost::signals2.
This commit is contained in:
@@ -5,11 +5,13 @@
|
|||||||
#ifndef BITCOIN_INTERFACES_HANDLER_H
|
#ifndef BITCOIN_INTERFACES_HANDLER_H
|
||||||
#define BITCOIN_INTERFACES_HANDLER_H
|
#define BITCOIN_INTERFACES_HANDLER_H
|
||||||
|
|
||||||
#include <btcsignals.h>
|
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
namespace btcsignals {
|
||||||
|
class connection;
|
||||||
|
} // namespace btcsignals
|
||||||
|
|
||||||
namespace interfaces {
|
namespace interfaces {
|
||||||
|
|
||||||
//! Generic interface for managing an event handler or callback function
|
//! Generic interface for managing an event handler or callback function
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
#ifndef BITCOIN_NODE_INTERFACE_UI_H
|
#ifndef BITCOIN_NODE_INTERFACE_UI_H
|
||||||
#define BITCOIN_NODE_INTERFACE_UI_H
|
#define BITCOIN_NODE_INTERFACE_UI_H
|
||||||
|
|
||||||
#include <btcsignals.h>
|
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <string>
|
#include <string>
|
||||||
@@ -17,6 +15,10 @@ class CBlockIndex;
|
|||||||
enum class SynchronizationState;
|
enum class SynchronizationState;
|
||||||
struct bilingual_str;
|
struct bilingual_str;
|
||||||
|
|
||||||
|
namespace btcsignals {
|
||||||
|
class connection;
|
||||||
|
} // namespace btcsignals
|
||||||
|
|
||||||
/** Signals for UI communication. */
|
/** Signals for UI communication. */
|
||||||
class CClientUIInterface
|
class CClientUIInterface
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user