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
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
|
|
|
enum MACConsumer
|
|
|
|
{
|
2016-06-24 08:43:46 +00:00
|
|
|
BBA = 0,
|
|
|
|
IOS = 1
|
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
|
|
|
};
|
|
|
|
|
|
|
|
void GenerateMacAddress(const MACConsumer type, u8* mac);
|
|
|
|
std::string MacAddressToString(const u8* mac);
|
|
|
|
bool StringToMacAddress(const std::string& mac_string, u8* mac);
|