summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-04-12 21:33:16 +0200
committerGitHub <noreply@github.com>2023-04-12 21:33:16 +0200
commit1e4b0d032eff3a076924f2ceea089c5dd6c76abb (patch)
tree27da523be9c00b11572a8a6e9f6066deaabf1268 /Source/Core/Common
parentc5bbe0af0282d3db76580ba499c2d1ec010bafdb (diff)
parentf5bdfdde1abe44121a6b2c7d895e63edb5b8f726 (diff)
Merge pull request #11753 from lioncash/upnp
Common/UPnP: Move interface into Common namespace
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/UPnP.cpp4
-rw-r--r--Source/Core/Common/UPnP.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/Common/UPnP.cpp b/Source/Core/Common/UPnP.cpp
index 9552236e69..be5474706b 100644
--- a/Source/Core/Common/UPnP.cpp
+++ b/Source/Core/Common/UPnP.cpp
@@ -164,14 +164,14 @@ static void UnmapPortThread()
UnmapPort(s_mapped);
}
-void UPnP::TryPortmapping(u16 port)
+void Common::UPnP::TryPortmapping(u16 port)
{
if (s_thread.joinable())
s_thread.join();
s_thread = std::thread(&MapPortThread, port);
}
-void UPnP::StopPortmapping()
+void Common::UPnP::StopPortmapping()
{
if (s_thread.joinable())
s_thread.join();
diff --git a/Source/Core/Common/UPnP.h b/Source/Core/Common/UPnP.h
index 3013cf56d2..5545097ec1 100644
--- a/Source/Core/Common/UPnP.h
+++ b/Source/Core/Common/UPnP.h
@@ -7,10 +7,10 @@
#include "Common/CommonTypes.h"
-namespace UPnP
+namespace Common::UPnP
{
void TryPortmapping(u16 port);
void StopPortmapping();
-} // namespace UPnP
+} // namespace Common::UPnP
#endif