// Copyright 2015 Dolphin Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later // #pragma once #include #include #include #include "Common/CommonTypes.h" namespace Common::ENet { struct ENetHostDeleter { void operator()(ENetHost* host) const noexcept { enet_host_destroy(host); } }; using ENetHostPtr = std::unique_ptr; void WakeupThread(ENetHost* host); int ENET_CALLBACK InterceptCallback(ENetHost* host, ENetEvent* event); bool SendPacket(ENetPeer* socket, const sf::Packet& packet, u8 channel_id); // used for traversal packets and wake-up packets constexpr int SKIPPABLE_EVENT = 42; } // namespace Common::ENet