Update relayreg.h — add displays parameter to registerHost signature
This commit is contained in:
parent
fc29ec5954
commit
5f9661605c
1 changed files with 6 additions and 1 deletions
|
|
@ -11,8 +11,11 @@
|
||||||
// Built on libcurl (synchronous, no event loop dependency).
|
// Built on libcurl (synchronous, no event loop dependency).
|
||||||
// The caller is responsible for starting heartbeats in a background thread.
|
// The caller is responsible for starting heartbeats in a background thread.
|
||||||
|
|
||||||
|
#include "displayinfo.h"
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace wg {
|
namespace wg {
|
||||||
|
|
||||||
|
|
@ -63,8 +66,10 @@ public:
|
||||||
// name: friendly display name shown in DragonMoonlight.
|
// name: friendly display name shown in DragonMoonlight.
|
||||||
// wgIP: the local WireGuard address (e.g. "10.99.0.3").
|
// wgIP: the local WireGuard address (e.g. "10.99.0.3").
|
||||||
// port: streaming port (default 47984).
|
// port: streaming port (default 47984).
|
||||||
|
// displays: list of connected display info.
|
||||||
bool registerHost(const std::string &name, const std::string &wgIP,
|
bool registerHost(const std::string &name, const std::string &wgIP,
|
||||||
int port, std::string &errOut);
|
int port, const std::vector<DisplayInfo> &displays,
|
||||||
|
std::string &errOut);
|
||||||
|
|
||||||
// Must be called every ~60 seconds to keep the host visible (5-min TTL).
|
// Must be called every ~60 seconds to keep the host visible (5-min TTL).
|
||||||
bool heartbeat(std::string &errOut);
|
bool heartbeat(std::string &errOut);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue