mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-18 16:37:55 +00:00
network: Add initial files and enet dependency
This commit is contained in:
parent
e2647971f8
commit
00526e94d1
15 changed files with 2898 additions and 0 deletions
25
src/network/network.h
Normal file
25
src/network/network.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
// Copyright 2017 Citra Emulator Project
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include "network/room.h"
|
||||
#include "network/room_member.h"
|
||||
|
||||
namespace Network {
|
||||
|
||||
/// Initializes and registers the network device, the room, and the room member.
|
||||
bool Init();
|
||||
|
||||
/// Returns a pointer to the room handle
|
||||
std::weak_ptr<Room> GetRoom();
|
||||
|
||||
/// Returns a pointer to the room member handle
|
||||
std::weak_ptr<RoomMember> GetRoomMember();
|
||||
|
||||
/// Unregisters the network device, the room, and the room member and shut them down.
|
||||
void Shutdown();
|
||||
|
||||
} // namespace Network
|
Loading…
Add table
Add a link
Reference in a new issue