[Yellowstone] Move yellowstone yunq def to yellowstone/lib/
This commit is contained in:
parent
af0852a5fa
commit
4c2237fa72
13 changed files with 5 additions and 54 deletions
32
sys/yellowstone/lib/yellowstone/yellowstone.yunq.client.h
Normal file
32
sys/yellowstone/lib/yellowstone/yellowstone.yunq.client.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
// Generated file - DO NOT MODIFY
|
||||
#pragma once
|
||||
|
||||
#include <glacier/buffer/byte_buffer.h>
|
||||
#include <glacier/buffer/cap_buffer.h>
|
||||
#include <glacier/status/error.h>
|
||||
#include <ztypes.h>
|
||||
|
||||
#include "yellowstone.yunq.h"
|
||||
|
||||
class YellowstoneClient {
|
||||
public:
|
||||
YellowstoneClient(z_cap_t Yellowstone_cap) : endpoint_(Yellowstone_cap) {}
|
||||
YellowstoneClient(const YellowstoneClient&) = delete;
|
||||
YellowstoneClient(YellowstoneClient&& other) : endpoint_(other.endpoint_) {other.endpoint_ = 0;};
|
||||
|
||||
z_cap_t Capability() { return endpoint_; }
|
||||
|
||||
|
||||
[[nodiscard]] glcr::ErrorCode RegisterEndpoint(const RegisterEndpointRequest& request, Empty& response);
|
||||
|
||||
[[nodiscard]] glcr::ErrorCode GetAhciInfo(const Empty& request, AhciInfo& response);
|
||||
|
||||
[[nodiscard]] glcr::ErrorCode GetDenali(const Empty& request, DenaliInfo& response);
|
||||
|
||||
private:
|
||||
z_cap_t endpoint_;
|
||||
uint64_t kBufferSize = 0x1000;
|
||||
glcr::ByteBuffer buffer_{kBufferSize};
|
||||
uint64_t kCapBufferSize = 0x10;
|
||||
glcr::CapBuffer cap_buffer_{kCapBufferSize};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue