mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	network: Forward declarations
This commit is contained in:
		@@ -7,6 +7,7 @@
 | 
				
			|||||||
#include "core/hle/service/kernel_helpers.h"
 | 
					#include "core/hle/service/kernel_helpers.h"
 | 
				
			||||||
#include "core/hle/service/nifm/nifm.h"
 | 
					#include "core/hle/service/nifm/nifm.h"
 | 
				
			||||||
#include "core/hle/service/server_manager.h"
 | 
					#include "core/hle/service/server_manager.h"
 | 
				
			||||||
 | 
					#include "network/network.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,14 +4,15 @@
 | 
				
			|||||||
#pragma once
 | 
					#pragma once
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "core/hle/service/service.h"
 | 
					#include "core/hle/service/service.h"
 | 
				
			||||||
#include "network/network.h"
 | 
					 | 
				
			||||||
#include "network/room.h"
 | 
					 | 
				
			||||||
#include "network/room_member.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Core {
 | 
					namespace Core {
 | 
				
			||||||
class System;
 | 
					class System;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Network {
 | 
				
			||||||
 | 
					class RoomNetwork;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Service::NIFM {
 | 
					namespace Service::NIFM {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void LoopProcess(Core::System& system);
 | 
					void LoopProcess(Core::System& system);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,6 +10,7 @@
 | 
				
			|||||||
#include "core/internal_network/network.h"
 | 
					#include "core/internal_network/network.h"
 | 
				
			||||||
#include "core/internal_network/network_interface.h"
 | 
					#include "core/internal_network/network_interface.h"
 | 
				
			||||||
#include "core/internal_network/socket_proxy.h"
 | 
					#include "core/internal_network/socket_proxy.h"
 | 
				
			||||||
 | 
					#include "network/network.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if YUZU_UNIX
 | 
					#if YUZU_UNIX
 | 
				
			||||||
#include <sys/socket.h>
 | 
					#include <sys/socket.h>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,10 +10,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include "common/common_funcs.h"
 | 
					#include "common/common_funcs.h"
 | 
				
			||||||
#include "core/internal_network/sockets.h"
 | 
					#include "core/internal_network/sockets.h"
 | 
				
			||||||
#include "network/network.h"
 | 
					#include "network/room_member.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Network {
 | 
					namespace Network {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class RoomNetwork;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ProxySocket : public SocketBase {
 | 
					class ProxySocket : public SocketBase {
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
    explicit ProxySocket(RoomNetwork& room_network_) noexcept;
 | 
					    explicit ProxySocket(RoomNetwork& room_network_) noexcept;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,12 +15,13 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include "common/common_types.h"
 | 
					#include "common/common_types.h"
 | 
				
			||||||
#include "core/internal_network/network.h"
 | 
					#include "core/internal_network/network.h"
 | 
				
			||||||
#include "network/network.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
// TODO: C++20 Replace std::vector usages with std::span
 | 
					// TODO: C++20 Replace std::vector usages with std::span
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Network {
 | 
					namespace Network {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					struct ProxyPacket;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class SocketBase {
 | 
					class SocketBase {
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
#ifdef YUZU_UNIX
 | 
					#ifdef YUZU_UNIX
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user