dolphin/Source/Core/Common/Network.h

28 lines
466 B
C
Raw Normal View History

// 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
#include <string>
#include "Common/CommonTypes.h"
namespace Common
2014-03-06 11:09:12 -07:00
{
enum class MACConsumer
{
BBA,
IOS
2014-03-06 11:09:12 -07:00
};
enum
{
MAC_ADDRESS_SIZE = 6
2014-03-06 11:09:12 -07:00
};
void GenerateMacAddress(const MACConsumer type, u8* mac);
std::string MacAddressToString(const u8* mac);
bool StringToMacAddress(const std::string& mac_string, u8* mac);
} // namespace Common