summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2018-05-30 07:45:09 +0200
committerGitHub <noreply@github.com>2018-05-30 07:45:09 +0200
commit6cb81ca851dfe5be51d9511ce47627fcddcc2bf9 (patch)
treede32c03cb99d92282bf0a60e34b07973fdbf2926 /Source/Core/Common
parent2f561dafd9e7dedfd3cecf933dac9edf79dc093e (diff)
parent97c5a840dbe0912e81c7ad10bea1c35991095fb8 (diff)
Merge pull request #7015 from lioncash/pcap
PcapFile: Namespace code under the Common namespace
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/PcapFile.cpp3
-rw-r--r--Source/Core/Common/PcapFile.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/Common/PcapFile.cpp b/Source/Core/Common/PcapFile.cpp
index 5ce626f279..0d9ce9a5a3 100644
--- a/Source/Core/Common/PcapFile.cpp
+++ b/Source/Core/Common/PcapFile.cpp
@@ -8,6 +8,8 @@
#include "Common/File.h"
#include "Common/PcapFile.h"
+namespace Common
+{
namespace
{
const u32 PCAP_MAGIC = 0xa1b2c3d4;
@@ -61,3 +63,4 @@ void PCAP::AddPacket(const u8* bytes, size_t size)
m_fp->WriteBytes(&rec_hdr, sizeof(rec_hdr));
m_fp->WriteBytes(bytes, size);
}
+} // namespace Common
diff --git a/Source/Core/Common/PcapFile.h b/Source/Core/Common/PcapFile.h
index 4e33b25802..e01c06bb11 100644
--- a/Source/Core/Common/PcapFile.h
+++ b/Source/Core/Common/PcapFile.h
@@ -19,6 +19,8 @@
#include "Common/CommonTypes.h"
#include "Common/File.h"
+namespace Common
+{
class PCAP final
{
public:
@@ -38,3 +40,4 @@ private:
std::unique_ptr<File::IOFile> m_fp;
};
+} // namespace Common