| 
									
										
										
										
											2015-05-24 06:55:12 +02:00
										 |  |  | // Copyright 2014 Dolphin Emulator Project
 | 
					
						
							| 
									
										
										
										
											2015-05-18 01:08:10 +02:00
										 |  |  | // Licensed under GPLv2+
 | 
					
						
							| 
									
										
										
										
											2014-03-07 07:09:12 +13:00
										 |  |  | // Refer to the license.txt file included.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <string>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "Common/CommonTypes.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-17 19:19:20 -05:00
										 |  |  | namespace Common | 
					
						
							| 
									
										
										
										
											2014-03-07 07:09:12 +13:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2017-01-17 19:19:20 -05:00
										 |  |  | enum class MACConsumer | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   BBA, | 
					
						
							|  |  |  |   IOS | 
					
						
							| 
									
										
										
										
											2014-03-07 07:09:12 +13:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | enum | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  |   MAC_ADDRESS_SIZE = 6 | 
					
						
							| 
									
										
										
										
											2014-03-07 07:09:12 +13:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void GenerateMacAddress(const MACConsumer type, u8* mac); | 
					
						
							|  |  |  | std::string MacAddressToString(const u8* mac); | 
					
						
							|  |  |  | bool StringToMacAddress(const std::string& mac_string, u8* mac); | 
					
						
							| 
									
										
										
										
											2017-01-17 19:19:20 -05:00
										 |  |  | }  // namespace Common
 |