175 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
30 lines
1.2 KiB
C++
30 lines
1.2 KiB
C++
#pragma once
|
|
#include <filesystem>
|
|
#include <string>
|
|
#include <cstdint>
|
|
#include <functional>
|
|
struct gw_native_session;
|
|
namespace gateway::engine {
|
|
// Wine laboratory bridge. Worker only inspects named API metadata. Engine Lua
|
|
// calls happen solely when its real callback is intercepted on its own thread.
|
|
void prepare_probe(const std::filesystem::path& workspace);
|
|
void watch_registration(const std::filesystem::path& workspace);
|
|
void backend_report(std::string report);
|
|
struct PacketDelivery {
|
|
int encode_result=-1;
|
|
bool published=false;
|
|
uint32_t submitted=0,received=0,opcode=0,state=0,error=0,bytes=0;
|
|
};
|
|
PacketDelivery publish_roster(const std::filesystem::path&,gw_native_session*,uint32_t realm_wire_id);
|
|
struct SessionRetention {
|
|
uint32_t elapsed_ms=0,pings=0,pongs=0;
|
|
int error=0;
|
|
bool active=false;
|
|
std::string reason="not-started";
|
|
};
|
|
// Retains the same authenticated handle on its original worker. Only owned PE
|
|
// status is observed; no Windows calls, engine flags or gameplay input.
|
|
SessionRetention retain_session(const std::filesystem::path&,gw_native_session*,uint32_t seconds,
|
|
const std::function<void(const SessionRetention&)>& report);
|
|
}
|