[Yunq] Return status in server code.

This commit is contained in:
Drew Galbraith 2023-12-01 10:23:54 -08:00
parent 3eba0bd9d8
commit 700f3f94cb
20 changed files with 166 additions and 178 deletions

View file

@ -8,10 +8,10 @@ glcr::ErrorOr<glcr::UniquePtr<VoyageursServer>> VoyageursServer::Create(
new VoyageursServer(cap, keyboard_driver));
}
glcr::ErrorCode VoyageursServer::HandleRegisterKeyboardListener(
glcr::Status VoyageursServer::HandleRegisterKeyboardListener(
const KeyboardListener& listener) {
keyboard_driver_.RegisterListener(listener.port_capability());
return glcr::OK;
return glcr::Status::Ok();
}
VoyageursServer::VoyageursServer(z_cap_t voyageurs_cap,