mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 08:39:00 +00:00
TraversalProto: Convert typedefs into using aliases
Same behavior, more straightforward reading.
This commit is contained in:
parent
d48b5615ae
commit
f0c6e696fd
1 changed files with 5 additions and 3 deletions
|
@ -1,12 +1,14 @@
|
||||||
// This file is public domain, in case it's useful to anyone. -comex
|
// This file is public domain, in case it's useful to anyone. -comex
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <cstddef>
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
|
|
||||||
#define NETPLAY_CODE_SIZE 8
|
constexpr size_t NETPLAY_CODE_SIZE = 8;
|
||||||
typedef std::array<char, NETPLAY_CODE_SIZE> TraversalHostId;
|
using TraversalHostId = std::array<char, NETPLAY_CODE_SIZE>;
|
||||||
typedef u64 TraversalRequestId;
|
using TraversalRequestId = u64;
|
||||||
|
|
||||||
enum class TraversalPacketType : u8
|
enum class TraversalPacketType : u8
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue