[Glacier] Convert ErrorCode into an Enum.

This commit is contained in:
Drew Galbraith 2023-11-02 21:55:12 -07:00
parent bcd9cf09bc
commit e66706d381
14 changed files with 77 additions and 66 deletions

View file

@ -9,5 +9,6 @@ PortClient PortClient::AdoptPort(z_cap_t cap) { return PortClient(cap); }
PortClient::PortClient(z_cap_t port_cap) : port_cap_(port_cap) {}
glcr::ErrorCode PortClient::WriteString(glcr::String str, z_cap_t cap) {
return ZPortSend(port_cap_, str.length() + 1, str.cstr(), 1, &cap);
return static_cast<glcr::ErrorCode>(
ZPortSend(port_cap_, str.length() + 1, str.cstr(), 1, &cap));
}