mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-27 11:10:06 +00:00
2e37ce01c9
* Added support for network with ENet lib, connecting is possible, but data can't be sent, yet. * fixup! Added support for network with ENet lib, * fixup! CLang * fixup! Added support for network with ENet lib, * fixup! Added support for network with ENet lib, * fixup! Clang format * More fixups! * Moved ENetHost* and ENetPeer* into pimpl classes * fixup! Moved ENetHost* and ENetPeer* into pimpl classes * fixup! Clang again * fixup! Moved ENetHost* and ENetPeer* into pimpl classes * fixup! Moved ENetHost* and ENetPeer* into pimpl classes * fixup! Moved ENetHost* and ENetPeer* into pimpl classes
26 lines
630 B
C++
26 lines
630 B
C++
// 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
|