[yellowstone] Add registration to yellowstone stub.

This commit is contained in:
Drew Galbraith 2023-07-05 15:01:29 -07:00
parent 72483a3437
commit c057da88ad
5 changed files with 27 additions and 16 deletions

View file

@ -20,7 +20,7 @@ class EndpointClient {
template <typename Req, typename Resp>
glcr::ErrorOr<Resp> CallEndpoint(const Req& req);
z_cap_t GetCap() { return cap_; }
z_cap_t GetCap() const { return cap_; }
private:
EndpointClient(uint64_t cap) : cap_(cap) {}

View file

@ -7,6 +7,7 @@
class PortClient {
public:
PortClient() {}
static PortClient AdoptPort(z_cap_t port_cap);
template <typename T>
@ -16,8 +17,10 @@ class PortClient {
z_cap_t cap() { return port_cap_; }
bool empty() { return port_cap_ == 0; }
private:
z_cap_t port_cap_;
z_cap_t port_cap_ = 0;
PortClient(z_cap_t port_cap);
};