[yunq] Add codegen for clients and servers (untested).
This commit is contained in:
parent
963cc0b4fa
commit
71e3521b87
12 changed files with 472 additions and 75 deletions
|
|
@ -5,9 +5,6 @@
|
|||
#include <glacier/buffer/cap_buffer.h>
|
||||
#include <glacier/string/string.h>
|
||||
#include <ztypes.h>
|
||||
|
||||
|
||||
|
||||
class OpenFileRequest {
|
||||
public:
|
||||
OpenFileRequest() {}
|
||||
|
|
@ -19,24 +16,16 @@ class OpenFileRequest {
|
|||
void ParseFromBytes(const glcr::ByteBuffer&, uint64_t offset, const glcr::CapBuffer&);
|
||||
uint64_t SerializeToBytes(glcr::ByteBuffer&, uint64_t offset);
|
||||
uint64_t SerializeToBytes(glcr::ByteBuffer&, uint64_t offset, glcr::CapBuffer&);
|
||||
|
||||
|
||||
glcr::String path() { return path_; }
|
||||
void set_path(const glcr::String& value) { path_ = value; }
|
||||
|
||||
uint64_t options() { return options_; }
|
||||
void set_options(const uint64_t& value) { options_ = value; }
|
||||
|
||||
|
||||
private:
|
||||
|
||||
glcr::String path_;
|
||||
|
||||
uint64_t options_;
|
||||
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
class File {
|
||||
public:
|
||||
File() {}
|
||||
|
|
@ -48,25 +37,16 @@ class File {
|
|||
void ParseFromBytes(const glcr::ByteBuffer&, uint64_t offset, const glcr::CapBuffer&);
|
||||
uint64_t SerializeToBytes(glcr::ByteBuffer&, uint64_t offset);
|
||||
uint64_t SerializeToBytes(glcr::ByteBuffer&, uint64_t offset, glcr::CapBuffer&);
|
||||
|
||||
|
||||
glcr::String path() { return path_; }
|
||||
void set_path(const glcr::String& value) { path_ = value; }
|
||||
|
||||
uint64_t attrs() { return attrs_; }
|
||||
void set_attrs(const uint64_t& value) { attrs_ = value; }
|
||||
|
||||
z_cap_t mem_cap() { return mem_cap_; }
|
||||
void set_mem_cap(const z_cap_t& value) { mem_cap_ = value; }
|
||||
|
||||
|
||||
private:
|
||||
|
||||
glcr::String path_;
|
||||
|
||||
uint64_t attrs_;
|
||||
|
||||
z_cap_t mem_cap_;
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue