[Voyageurs] Register with yellowstone.
This commit is contained in:
parent
8365d47cbe
commit
ea17c143cc
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
#include <mammoth/util/debug.h>
|
#include <mammoth/util/debug.h>
|
||||||
#include <mammoth/util/init.h>
|
#include <mammoth/util/init.h>
|
||||||
|
#include <yellowstone/yellowstone.yunq.client.h>
|
||||||
|
|
||||||
#include "keyboard/keyboard_driver.h"
|
#include "keyboard/keyboard_driver.h"
|
||||||
#include "voyageurs_server.h"
|
#include "voyageurs_server.h"
|
||||||
|
@ -20,6 +21,15 @@ uint64_t main(uint64_t init_port) {
|
||||||
|
|
||||||
Thread server_thread = server->RunServer();
|
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(server_thread.Join());
|
||||||
check(keyboard_thread.Join());
|
check(keyboard_thread.Join());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue