diff options
| author | 2023-07-17 15:36:03 -0400 | |
|---|---|---|
| committer | 2023-07-17 15:36:03 -0400 | |
| commit | 5bbc3aef1368cc1fcc59304013f0999b0827115b (patch) | |
| tree | a78a09ae6dfbd779536059f8806077cb2a710b76 /src/core/internal_network | |
| parent | Merge pull request #10934 from abouvier/cmake-vma (diff) | |
| download | yuzu-5bbc3aef1368cc1fcc59304013f0999b0827115b.tar.gz yuzu-5bbc3aef1368cc1fcc59304013f0999b0827115b.tar.xz yuzu-5bbc3aef1368cc1fcc59304013f0999b0827115b.zip | |
network: Forward declarations
Diffstat (limited to 'src/core/internal_network')
| -rw-r--r-- | src/core/internal_network/socket_proxy.cpp | 1 | ||||
| -rw-r--r-- | src/core/internal_network/socket_proxy.h | 4 | ||||
| -rw-r--r-- | src/core/internal_network/sockets.h | 3 |
3 files changed, 6 insertions, 2 deletions
diff --git a/src/core/internal_network/socket_proxy.cpp b/src/core/internal_network/socket_proxy.cpp index 44e9e3093..ce0dee970 100644 --- a/src/core/internal_network/socket_proxy.cpp +++ b/src/core/internal_network/socket_proxy.cpp | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | #include "core/internal_network/network.h" | 10 | #include "core/internal_network/network.h" |
| 11 | #include "core/internal_network/network_interface.h" | 11 | #include "core/internal_network/network_interface.h" |
| 12 | #include "core/internal_network/socket_proxy.h" | 12 | #include "core/internal_network/socket_proxy.h" |
| 13 | #include "network/network.h" | ||
| 13 | 14 | ||
| 14 | #if YUZU_UNIX | 15 | #if YUZU_UNIX |
| 15 | #include <sys/socket.h> | 16 | #include <sys/socket.h> |
diff --git a/src/core/internal_network/socket_proxy.h b/src/core/internal_network/socket_proxy.h index e12c413d1..70500cf4a 100644 --- a/src/core/internal_network/socket_proxy.h +++ b/src/core/internal_network/socket_proxy.h | |||
| @@ -10,10 +10,12 @@ | |||
| 10 | 10 | ||
| 11 | #include "common/common_funcs.h" | 11 | #include "common/common_funcs.h" |
| 12 | #include "core/internal_network/sockets.h" | 12 | #include "core/internal_network/sockets.h" |
| 13 | #include "network/network.h" | 13 | #include "network/room_member.h" |
| 14 | 14 | ||
| 15 | namespace Network { | 15 | namespace Network { |
| 16 | 16 | ||
| 17 | class RoomNetwork; | ||
| 18 | |||
| 17 | class ProxySocket : public SocketBase { | 19 | class ProxySocket : public SocketBase { |
| 18 | public: | 20 | public: |
| 19 | explicit ProxySocket(RoomNetwork& room_network_) noexcept; | 21 | explicit ProxySocket(RoomNetwork& room_network_) noexcept; |
diff --git a/src/core/internal_network/sockets.h b/src/core/internal_network/sockets.h index 46a53ef79..4ba51f62c 100644 --- a/src/core/internal_network/sockets.h +++ b/src/core/internal_network/sockets.h | |||
| @@ -15,12 +15,13 @@ | |||
| 15 | 15 | ||
| 16 | #include "common/common_types.h" | 16 | #include "common/common_types.h" |
| 17 | #include "core/internal_network/network.h" | 17 | #include "core/internal_network/network.h" |
| 18 | #include "network/network.h" | ||
| 19 | 18 | ||
| 20 | // TODO: C++20 Replace std::vector usages with std::span | 19 | // TODO: C++20 Replace std::vector usages with std::span |
| 21 | 20 | ||
| 22 | namespace Network { | 21 | namespace Network { |
| 23 | 22 | ||
| 23 | struct ProxyPacket; | ||
| 24 | |||
| 24 | class SocketBase { | 25 | class SocketBase { |
| 25 | public: | 26 | public: |
| 26 | #ifdef YUZU_UNIX | 27 | #ifdef YUZU_UNIX |