mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
PcapFile: Namespace code under the Common namespace
Brings more common code under the Common namespace.
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user