aboutsummaryrefslogtreecommitdiff
path: root/src/mapport.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-02-06 19:00:26 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-01-07 18:06:58 +0200
commit02ccf69dd6b772423acb343d16ef2bdbb3e3da03 (patch)
tree105a82f38003a255a4c9df8e713155455a2e130f /src/mapport.h
parent4b8b71e630415647c75fa95d5407690b372bceff (diff)
downloadbitcoin-02ccf69dd6b772423acb343d16ef2bdbb3e3da03.tar.xz
refactor: Move port mapping code to its own module
This commit does not change behavior.
Diffstat (limited to 'src/mapport.h')
-rw-r--r--src/mapport.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mapport.h b/src/mapport.h
new file mode 100644
index 0000000000..25ff2fd1eb
--- /dev/null
+++ b/src/mapport.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2011-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_MAPPORT_H
+#define BITCOIN_MAPPORT_H
+
+/** -upnp default */
+#ifdef USE_UPNP
+static const bool DEFAULT_UPNP = USE_UPNP;
+#else
+static const bool DEFAULT_UPNP = false;
+#endif
+
+void StartMapPort();
+void InterruptMapPort();
+void StopMapPort();
+
+#endif // BITCOIN_MAPPORT_H