Skip to content

Commit 048ac83

Browse files
author
MarcoFalke
committed
Merge #12906: Avoid interface keyword to fix windows gitian build
17780d6 scripted-diff: Avoid `interface` keyword to fix windows gitian build (Russell Yanofsky) Pull request description: Rename `interface` to `interfaces` Build failure reported by ken2812221 in bitcoin/bitcoin#10244 (comment) Tree-SHA512: e02c97c728540f344202c13b036f9f63af23bd25e25ed7a5cfe9e2c2f201a12ff232cc94a93fbe37ef6fb6bf9e036fe62210ba798ecd30de191d09338754a8d0
2 parents becd8dd + 17780d6 commit 048ac83

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+211
-211
lines changed

doc/developer-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ GUI
623623
holds: try to not directly access core data structures from Views.
624624

625625
- Avoid adding slow or blocking code in the GUI thread. In particular do not
626-
add new `interface::Node` and `interface::Wallet` method calls, even if they
626+
add new `interfaces::Node` and `interfaces::Wallet` method calls, even if they
627627
may be fast now, in case they are changed to lock or communicate across
628628
processes in the future.
629629

src/Makefile.am

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ BITCOIN_CORE_H = \
105105
httpserver.h \
106106
indirectmap.h \
107107
init.h \
108-
interface/handler.h \
109-
interface/node.h \
110-
interface/wallet.h \
108+
interfaces/handler.h \
109+
interfaces/node.h \
110+
interfaces/wallet.h \
111111
key.h \
112112
key_io.h \
113113
keystore.h \
@@ -248,7 +248,7 @@ endif
248248
libbitcoin_wallet_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
249249
libbitcoin_wallet_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
250250
libbitcoin_wallet_a_SOURCES = \
251-
interface/wallet.cpp \
251+
interfaces/wallet.cpp \
252252
wallet/crypter.cpp \
253253
wallet/db.cpp \
254254
wallet/feebumper.cpp \
@@ -361,8 +361,8 @@ libbitcoin_util_a_SOURCES = \
361361
compat/glibcxx_sanity.cpp \
362362
compat/strnlen.cpp \
363363
fs.cpp \
364-
interface/handler.cpp \
365-
interface/node.cpp \
364+
interfaces/handler.cpp \
365+
interfaces/node.cpp \
366366
random.cpp \
367367
rpc/protocol.cpp \
368368
rpc/util.cpp \
File renamed without changes.

src/interface/handler.cpp renamed to src/interfaces/handler.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include <interface/handler.h>
5+
#include <interfaces/handler.h>
66

77
#include <util.h>
88

99
#include <boost/signals2/connection.hpp>
1010
#include <memory>
1111
#include <utility>
1212

13-
namespace interface {
13+
namespace interfaces {
1414
namespace {
1515

1616
class HandlerImpl : public Handler
@@ -30,4 +30,4 @@ std::unique_ptr<Handler> MakeHandler(boost::signals2::connection connection)
3030
return MakeUnique<HandlerImpl>(std::move(connection));
3131
}
3232

33-
} // namespace interface
33+
} // namespace interfaces

src/interface/handler.h renamed to src/interfaces/handler.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#ifndef BITCOIN_INTERFACE_HANDLER_H
6-
#define BITCOIN_INTERFACE_HANDLER_H
5+
#ifndef BITCOIN_INTERFACES_HANDLER_H
6+
#define BITCOIN_INTERFACES_HANDLER_H
77

88
#include <memory>
99

@@ -13,7 +13,7 @@ class connection;
1313
} // namespace signals2
1414
} // namespace boost
1515

16-
namespace interface {
16+
namespace interfaces {
1717

1818
//! Generic interface for managing an event handler or callback function
1919
//! registered with another interface. Has a single disconnect method to cancel
@@ -30,6 +30,6 @@ class Handler
3030
//! Return handler wrapping a boost signal connection.
3131
std::unique_ptr<Handler> MakeHandler(boost::signals2::connection connection);
3232

33-
} // namespace interface
33+
} // namespace interfaces
3434

35-
#endif // BITCOIN_INTERFACE_HANDLER_H
35+
#endif // BITCOIN_INTERFACES_HANDLER_H

src/interface/node.cpp renamed to src/interfaces/node.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include <interface/node.h>
5+
#include <interfaces/node.h>
66

77
#include <addrdb.h>
88
#include <amount.h>
99
#include <chain.h>
1010
#include <chainparams.h>
1111
#include <init.h>
12-
#include <interface/handler.h>
13-
#include <interface/wallet.h>
12+
#include <interfaces/handler.h>
13+
#include <interfaces/wallet.h>
1414
#include <net.h>
1515
#include <net_processing.h>
1616
#include <netaddress.h>
@@ -43,7 +43,7 @@
4343
#include <boost/thread/thread.hpp>
4444
#include <univalue.h>
4545

46-
namespace interface {
46+
namespace interfaces {
4747
namespace {
4848

4949
class NodeImpl : public Node
@@ -305,4 +305,4 @@ class NodeImpl : public Node
305305

306306
std::unique_ptr<Node> MakeNode() { return MakeUnique<NodeImpl>(); }
307307

308-
} // namespace interface
308+
} // namespace interfaces

src/interface/node.h renamed to src/interfaces/node.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#ifndef BITCOIN_INTERFACE_NODE_H
6-
#define BITCOIN_INTERFACE_NODE_H
5+
#ifndef BITCOIN_INTERFACES_NODE_H
6+
#define BITCOIN_INTERFACES_NODE_H
77

88
#include <addrdb.h> // For banmap_t
99
#include <amount.h> // For CAmount
@@ -29,7 +29,7 @@ class proxyType;
2929
enum class FeeReason;
3030
struct CNodeStateStats;
3131

32-
namespace interface {
32+
namespace interfaces {
3333

3434
class Handler;
3535
class Wallet;
@@ -254,6 +254,6 @@ class Node
254254
//! Return implementation of Node interface.
255255
std::unique_ptr<Node> MakeNode();
256256

257-
} // namespace interface
257+
} // namespace interfaces
258258

259-
#endif // BITCOIN_INTERFACE_NODE_H
259+
#endif // BITCOIN_INTERFACES_NODE_H

src/interface/wallet.cpp renamed to src/interfaces/wallet.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include <interface/wallet.h>
5+
#include <interfaces/wallet.h>
66

77
#include <amount.h>
88
#include <chain.h>
99
#include <consensus/validation.h>
10-
#include <interface/handler.h>
10+
#include <interfaces/handler.h>
1111
#include <net.h>
1212
#include <policy/policy.h>
1313
#include <primitives/transaction.h>
@@ -24,7 +24,7 @@
2424

2525
#include <memory>
2626

27-
namespace interface {
27+
namespace interfaces {
2828
namespace {
2929

3030
class PendingWalletTxImpl : public PendingWalletTx
@@ -283,7 +283,7 @@ class WalletImpl : public Wallet
283283
return result;
284284
}
285285
bool tryGetTxStatus(const uint256& txid,
286-
interface::WalletTxStatus& tx_status,
286+
interfaces::WalletTxStatus& tx_status,
287287
int& num_blocks,
288288
int64_t& adjusted_time) override
289289
{
@@ -438,4 +438,4 @@ class WalletImpl : public Wallet
438438

439439
std::unique_ptr<Wallet> MakeWallet(CWallet& wallet) { return MakeUnique<WalletImpl>(wallet); }
440440

441-
} // namespace interface
441+
} // namespace interfaces

src/interface/wallet.h renamed to src/interfaces/wallet.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#ifndef BITCOIN_INTERFACE_WALLET_H
6-
#define BITCOIN_INTERFACE_WALLET_H
5+
#ifndef BITCOIN_INTERFACES_WALLET_H
6+
#define BITCOIN_INTERFACES_WALLET_H
77

88
#include <amount.h> // For CAmount
99
#include <pubkey.h> // For CTxDestination (CKeyID and CScriptID)
@@ -27,7 +27,7 @@ class CWallet;
2727
enum class OutputType;
2828
struct CRecipient;
2929

30-
namespace interface {
30+
namespace interfaces {
3131

3232
class Handler;
3333
class PendingWalletTx;
@@ -347,6 +347,6 @@ struct WalletTxOut
347347
//! in builds where ENABLE_WALLET is false.
348348
std::unique_ptr<Wallet> MakeWallet(CWallet& wallet);
349349

350-
} // namespace interface
350+
} // namespace interfaces
351351

352-
#endif // BITCOIN_INTERFACE_WALLET_H
352+
#endif // BITCOIN_INTERFACES_WALLET_H

src/qt/addresstablemodel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <qt/guiutil.h>
88
#include <qt/walletmodel.h>
99

10-
#include <interface/node.h>
10+
#include <interfaces/node.h>
1111
#include <key_io.h>
1212
#include <wallet/wallet.h>
1313

@@ -74,7 +74,7 @@ class AddressTablePriv
7474
AddressTablePriv(AddressTableModel *_parent):
7575
parent(_parent) {}
7676

77-
void refreshAddressTable(interface::Wallet& wallet)
77+
void refreshAddressTable(interfaces::Wallet& wallet)
7878
{
7979
cachedAddressTable.clear();
8080
{

0 commit comments

Comments
 (0)