aboutsummaryrefslogtreecommitdiff
path: root/src/mapport.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-02-23 00:10:48 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-01-07 18:07:08 +0200
commit4e91b1e24d96e0cdccdd2a3ed034413f3ba6bae6 (patch)
tree01f7e01ff0f66e58d98b5f3805780f571570476c /src/mapport.h
parent8b50d1b5bb29b7d1ea0245ba75a8df3144e312dc (diff)
net: Add flags for port mapping protocols
Diffstat (limited to 'src/mapport.h')
-rw-r--r--src/mapport.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mapport.h b/src/mapport.h
index 25ff2fd1eb..6e33b6ef74 100644
--- a/src/mapport.h
+++ b/src/mapport.h
@@ -12,7 +12,12 @@ static const bool DEFAULT_UPNP = USE_UPNP;
static const bool DEFAULT_UPNP = false;
#endif
-void StartMapPort();
+enum MapPortProtoFlag : unsigned int {
+ NONE = 0x00,
+ UPNP = 0x01,
+};
+
+void StartMapPort(bool use_upnp);
void InterruptMapPort();
void StopMapPort();