From ea17c143cc035236ba811bc289253ccb9dd609a5 Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Sat, 25 Nov 2023 19:37:04 -0800 Subject: [PATCH] [Voyageurs] Register with yellowstone. --- sys/voyageurs/voyageurs.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/voyageurs/voyageurs.cpp b/sys/voyageurs/voyageurs.cpp index ece9afd..6ef4b30 100644 --- a/sys/voyageurs/voyageurs.cpp +++ b/sys/voyageurs/voyageurs.cpp @@ -1,6 +1,7 @@ #include #include +#include #include "keyboard/keyboard_driver.h" #include "voyageurs_server.h" @@ -20,6 +21,15 @@ uint64_t main(uint64_t init_port) { Thread server_thread = server->RunServer(); + YellowstoneClient yellowstone(gInitEndpointCap); + + RegisterEndpointRequest req; + req.set_endpoint_name("voyageurs"); + ASSIGN_OR_RETURN(VoyageursClient client, server->CreateClient()); + req.set_endpoint_capability(client.Capability()); + Empty empty; + check(yellowstone.RegisterEndpoint(req, empty)); + check(server_thread.Join()); check(keyboard_thread.Join());