2015-05-24 04:55:12 +00:00
|
|
|
// Copyright 2014 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2014-03-06 18:09:12 +00:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-06-10 18:32:33 +00:00
|
|
|
#include <array>
|
|
|
|
#include <optional>
|
2014-03-06 18:09:12 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
2017-01-18 00:19:20 +00:00
|
|
|
namespace Common
|
2014-03-06 18:09:12 +00:00
|
|
|
{
|
2017-01-18 00:19:20 +00:00
|
|
|
enum class MACConsumer
|
|
|
|
{
|
|
|
|
BBA,
|
|
|
|
IOS
|
2014-03-06 18:09:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
2016-06-24 08:43:46 +00:00
|
|
|
MAC_ADDRESS_SIZE = 6
|
2014-03-06 18:09:12 +00:00
|
|
|
};
|
|
|
|
|
2018-06-10 18:32:33 +00:00
|
|
|
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);
|
2017-01-18 00:19:20 +00:00
|
|
|
} // namespace Common
|