summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ldn/ldn_types.h
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2022-08-08 19:49:48 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2022-08-08 19:49:48 +0200
commit8eb2c73381c2ed35767b51fde4102ec31d5ab5a1 (patch)
treea3690a06a81bbd13605047295b2d71ed59ff9bef /src/core/hle/service/ldn/ldn_types.h
parentldn: Add better stubs and more data types (diff)
downloadyuzu-8eb2c73381c2ed35767b51fde4102ec31d5ab5a1.tar
yuzu-8eb2c73381c2ed35767b51fde4102ec31d5ab5a1.tar.gz
yuzu-8eb2c73381c2ed35767b51fde4102ec31d5ab5a1.tar.bz2
yuzu-8eb2c73381c2ed35767b51fde4102ec31d5ab5a1.tar.lz
yuzu-8eb2c73381c2ed35767b51fde4102ec31d5ab5a1.tar.xz
yuzu-8eb2c73381c2ed35767b51fde4102ec31d5ab5a1.tar.zst
yuzu-8eb2c73381c2ed35767b51fde4102ec31d5ab5a1.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/ldn/ldn_types.h20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/core/hle/service/ldn/ldn_types.h b/src/core/hle/service/ldn/ldn_types.h
index 1132b2eb6..0c07a7397 100644
--- a/src/core/hle/service/ldn/ldn_types.h
+++ b/src/core/hle/service/ldn/ldn_types.h
@@ -1,6 +1,5 @@
-// Copyright 2022 yuzu emulator team
-// Licensed under GPLv2 or any later version
-// Refer to the license.txt file included.
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
@@ -32,14 +31,6 @@ enum class NodeStateChange : u8 {
DisconnectAndConnect,
};
-inline NodeStateChange operator|(NodeStateChange a, NodeStateChange b) {
- return static_cast<NodeStateChange>(static_cast<u8>(a) | static_cast<u8>(b));
-}
-
-inline NodeStateChange operator|=(NodeStateChange& a, NodeStateChange b) {
- return a = a | b;
-}
-
enum class ScanFilterFlag : u32 {
None = 0,
LocalCommunicationId = 1 << 0,
@@ -135,10 +126,7 @@ struct SessionId {
u64 high;
u64 low;
-public:
- bool operator==(const SessionId& b) const {
- return (low == b.low) && (high == b.high);
- }
+ bool operator==(const SessionId&) const = default;
};
static_assert(sizeof(SessionId) == 0x10, "SessionId is an invalid size");
@@ -160,7 +148,6 @@ struct Ssid {
u8 length;
std::array<char, SsidLengthMax + 1> raw;
-public:
std::string GetStringValue() const {
return std::string(raw.data(), length);
}
@@ -173,7 +160,6 @@ struct Ipv4Address {
std::array<u8, 4> bytes;
};
-public:
std::string GetStringValue() const {
return fmt::format("{}.{}.{}.{}", bytes[3], bytes[2], bytes[1], bytes[0]);
}