aboutsummaryrefslogtreecommitdiff
path: root/src/common/url.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/url.h')
-rw-r--r--src/common/url.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common/url.h b/src/common/url.h
new file mode 100644
index 0000000000..7bbd8b60de
--- /dev/null
+++ b/src/common/url.h
@@ -0,0 +1,14 @@
+// Copyright (c) 2015-2020 The Bitcoin Core developers
+// Distributed under the MIT software license, see the accompanying
+// file COPYING or http://www.opensource.org/licenses/mit-license.php.
+
+#ifndef BITCOIN_COMMON_URL_H
+#define BITCOIN_COMMON_URL_H
+
+#include <string>
+
+using UrlDecodeFn = std::string(const std::string& url_encoded);
+UrlDecodeFn urlDecode;
+extern UrlDecodeFn* const URL_DECODE;
+
+#endif // BITCOIN_COMMON_URL_H