File tree Expand file tree Collapse file tree 14 files changed +23
-19
lines changed Expand file tree Collapse file tree 14 files changed +23
-19
lines changed Original file line number Diff line number Diff line change 15
15
<ProjectReference Include =" ..\libbitcoin_cli\libbitcoin_cli.vcxproj" >
16
16
<Project >{0667528c-d734-4009-adf9-c0d6c4a5a5a6}</Project >
17
17
</ProjectReference >
18
+ <ProjectReference Include =" ..\libbitcoin_common\libbitcoin_common.vcxproj" >
19
+ <Project >{7c87e378-df58-482e-aa2f-1bc129bc19ce}</Project >
20
+ </ProjectReference >
18
21
<ProjectReference Include =" ..\libbitcoin_crypto\libbitcoin_crypto.vcxproj" >
19
22
<Project >{6190199c-6cf4-4dad-bfbd-93fa72a760c1}</Project >
20
23
</ProjectReference >
Original file line number Diff line number Diff line change 8
8
<ConfigurationType >StaticLibrary</ConfigurationType >
9
9
</PropertyGroup >
10
10
<ItemGroup >
11
+ <ClCompile Include =" ..\..\src\common\url.cpp" />
11
12
@SOURCE_FILES@
12
13
</ItemGroup >
13
14
<Import Project =" $(VCTargetsPath)\Microsoft.Cpp.props" />
Original file line number Diff line number Diff line change 8
8
<ConfigurationType >StaticLibrary</ConfigurationType >
9
9
</PropertyGroup >
10
10
<ItemGroup >
11
- <ClCompile Include =" ..\..\src\util\url.cpp" />
12
11
@SOURCE_FILES@
13
12
</ItemGroup >
14
13
<Import Project =" $(VCTargetsPath)\Microsoft.Cpp.props" />
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ if [ "${RUN_TIDY}" = "true" ]; then
40
40
( CI_EXEC run-clang-tidy -quiet " ${MAKEJOBS} " ) | grep -C5 " error"
41
41
export P_CI_DIR=" ${BASE_BUILD_DIR} /bitcoin-$HOST /"
42
42
CI_EXEC " python3 ${DIR_IWYU} /include-what-you-use/iwyu_tool.py" \
43
+ " src/common/url.cpp" \
43
44
" src/compat" \
44
45
" src/dbwrapper.cpp" \
45
46
" src/init" \
@@ -68,7 +69,6 @@ if [ "${RUN_TIDY}" = "true" ]; then
68
69
" src/util/strencodings.cpp" \
69
70
" src/util/string.cpp" \
70
71
" src/util/syserror.cpp" \
71
- " src/util/url.cpp" \
72
72
" src/zmq" \
73
73
" -p . ${MAKEJOBS} -- -Xiwyu --cxx17ns -Xiwyu --mapping_file=${BASE_BUILD_DIR} /bitcoin-$HOST /contrib/devtools/iwyu/bitcoin.core.imp"
74
74
fi
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ BITCOIN_CORE_H = \
134
134
coins.h \
135
135
common/bloom.h \
136
136
common/run_command.h \
137
+ common/url.h \
137
138
compat/assumptions.h \
138
139
compat/byteswap.h \
139
140
compat/compat.h \
@@ -303,7 +304,6 @@ BITCOIN_CORE_H = \
303
304
util/translation.h \
304
305
util/types.h \
305
306
util/ui_change_type.h \
306
- util/url.h \
307
307
util/vector.h \
308
308
validation.h \
309
309
validationinterface.h \
@@ -662,6 +662,11 @@ libbitcoin_common_a_SOURCES = \
662
662
script/standard.cpp \
663
663
warnings.cpp \
664
664
$(BITCOIN_CORE_H )
665
+
666
+ if USE_LIBEVENT
667
+ libbitcoin_common_a_CPPFLAGS += $(EVENT_CFLAGS )
668
+ libbitcoin_common_a_SOURCES += common/url.cpp
669
+ endif
665
670
#
666
671
667
672
# util #
@@ -708,11 +713,6 @@ libbitcoin_util_a_SOURCES = \
708
713
util/time.cpp \
709
714
util/tokenpipe.cpp \
710
715
$(BITCOIN_CORE_H )
711
-
712
- if USE_LIBEVENT
713
- libbitcoin_util_a_CPPFLAGS += $(EVENT_CFLAGS )
714
- libbitcoin_util_a_SOURCES += util/url.cpp
715
- endif
716
716
#
717
717
718
718
# cli #
@@ -776,6 +776,7 @@ endif
776
776
bitcoin_cli_LDADD = \
777
777
$(LIBBITCOIN_CLI ) \
778
778
$(LIBUNIVALUE ) \
779
+ $(LIBBITCOIN_COMMON ) \
779
780
$(LIBBITCOIN_UTIL ) \
780
781
$(LIBBITCOIN_CRYPTO )
781
782
Original file line number Diff line number Diff line change 9
9
10
10
#include < chainparamsbase.h>
11
11
#include < clientversion.h>
12
+ #include < common/url.h>
12
13
#include < compat/compat.h>
13
14
#include < compat/stdin.h>
14
15
#include < policy/feerate.h>
21
22
#include < util/strencodings.h>
22
23
#include < util/system.h>
23
24
#include < util/translation.h>
24
- #include < util/url.h>
25
25
26
26
#include < algorithm>
27
27
#include < chrono>
Original file line number Diff line number Diff line change 9
9
#include < chainparams.h>
10
10
#include < chainparamsbase.h>
11
11
#include < clientversion.h>
12
+ #include < common/url.h>
12
13
#include < compat/compat.h>
13
14
#include < interfaces/init.h>
14
15
#include < key.h>
17
18
#include < tinyformat.h>
18
19
#include < util/system.h>
19
20
#include < util/translation.h>
20
- #include < util/url.h>
21
21
#include < wallet/wallettool.h>
22
22
23
23
#include < exception>
Original file line number Diff line number Diff line change 9
9
10
10
#include < chainparams.h>
11
11
#include < clientversion.h>
12
+ #include < common/url.h>
12
13
#include < compat/compat.h>
13
14
#include < init.h>
14
15
#include < interfaces/chain.h>
25
26
#include < util/threadnames.h>
26
27
#include < util/tokenpipe.h>
27
28
#include < util/translation.h>
28
- #include < util/url.h>
29
29
30
30
#include < any>
31
31
#include < functional>
Original file line number Diff line number Diff line change 2
2
// Distributed under the MIT software license, see the accompanying
3
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
4
5
- #include < util /url.h>
5
+ #include < common /url.h>
6
6
7
7
#include < event2/http.h>
8
8
Original file line number Diff line number Diff line change 2
2
// Distributed under the MIT software license, see the accompanying
3
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
4
5
- #ifndef BITCOIN_UTIL_URL_H
6
- #define BITCOIN_UTIL_URL_H
5
+ #ifndef BITCOIN_COMMON_URL_H
6
+ #define BITCOIN_COMMON_URL_H
7
7
8
8
#include < string>
9
9
10
10
using UrlDecodeFn = std::string(const std::string& url_encoded);
11
11
UrlDecodeFn urlDecode;
12
12
extern UrlDecodeFn* const URL_DECODE;
13
13
14
- #endif // BITCOIN_UTIL_URL_H
14
+ #endif // BITCOIN_COMMON_URL_H
You can’t perform that action at this time.
0 commit comments