Network.h 423 B

12345678910111213141516171819202122232425
  1. // Copyright 2014 Dolphin Emulator Project
  2. // Licensed under GPLv2+
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <string>
  6. #include "Common/CommonTypes.h"
  7. enum MACConsumer
  8. {
  9. BBA = 0,
  10. IOS = 1
  11. };
  12. enum
  13. {
  14. MAC_ADDRESS_SIZE = 6
  15. };
  16. void GenerateMacAddress(const MACConsumer type, u8* mac);
  17. std::string MacAddressToString(const u8* mac);
  18. bool StringToMacAddress(const std::string& mac_string, u8* mac);