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