From 5f9661605c8b112735d6c70169b9c71a35d3908f Mon Sep 17 00:00:00 2001 From: ZGaetano Date: Wed, 6 May 2026 19:50:03 -0400 Subject: [PATCH] =?UTF-8?q?Update=20relayreg.h=20=E2=80=94=20add=20display?= =?UTF-8?q?s=20parameter=20to=20registerHost=20signature?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/wg/relayreg.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/wg/relayreg.h b/src/wg/relayreg.h index 3e214f6..583a487 100644 --- a/src/wg/relayreg.h +++ b/src/wg/relayreg.h @@ -11,8 +11,11 @@ // Built on libcurl (synchronous, no event loop dependency). // The caller is responsible for starting heartbeats in a background thread. +#include "displayinfo.h" + #include #include +#include namespace wg { @@ -63,8 +66,10 @@ public: // name: friendly display name shown in DragonMoonlight. // wgIP: the local WireGuard address (e.g. "10.99.0.3"). // port: streaming port (default 47984). + // displays: list of connected display info. bool registerHost(const std::string &name, const std::string &wgIP, - int port, std::string &errOut); + int port, const std::vector &displays, + std::string &errOut); // Must be called every ~60 seconds to keep the host visible (5-min TTL). bool heartbeat(std::string &errOut);