dolphin/Source/Core/Common/Network.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
568 B
C
Raw Normal View History

// Copyright 2014 Dolphin Emulator Project
2015-05-18 01:08:10 +02:00
// Licensed under GPLv2+
2014-03-06 19:09:12 +01:00
// Refer to the license.txt file included.
#pragma once
#include <array>
#include <optional>
2014-03-06 19:09:12 +01:00
#include <string>
#include "Common/CommonTypes.h"
namespace Common
2014-03-06 19:09:12 +01:00
{
enum class MACConsumer
{
BBA,
IOS
2014-03-06 19:09:12 +01:00
};
enum
{
MAC_ADDRESS_SIZE = 6
};
using MACAddress = std::array<u8, MAC_ADDRESS_SIZE>;
MACAddress GenerateMacAddress(MACConsumer type);
std::string MacAddressToString(const MACAddress& mac);
std::optional<MACAddress> StringToMacAddress(const std::string& mac_string);
} // namespace Common