[Yunq] Add support for empty requests and responses.
This commit is contained in:
parent
6d108f6965
commit
cc4b5bd811
11 changed files with 91 additions and 22 deletions
|
|
@ -17,7 +17,7 @@ class OpenFileRequest {
|
|||
void ParseFromBytes(const glcr::ByteBuffer&, uint64_t offset, const glcr::CapBuffer&);
|
||||
uint64_t SerializeToBytes(glcr::ByteBuffer&, uint64_t offset) const;
|
||||
uint64_t SerializeToBytes(glcr::ByteBuffer&, uint64_t offset, glcr::CapBuffer&) const;
|
||||
glcr::String path() const { return path_; }
|
||||
const glcr::String& path() const { return path_; }
|
||||
void set_path(const glcr::String& value) { path_ = value; }
|
||||
const glcr::Vector<uint64_t>& options() const { return options_; }
|
||||
void add_options(const uint64_t& value) { options_.PushBack(value); }
|
||||
|
|
@ -40,11 +40,11 @@ class File {
|
|||
void ParseFromBytes(const glcr::ByteBuffer&, uint64_t offset, const glcr::CapBuffer&);
|
||||
uint64_t SerializeToBytes(glcr::ByteBuffer&, uint64_t offset) const;
|
||||
uint64_t SerializeToBytes(glcr::ByteBuffer&, uint64_t offset, glcr::CapBuffer&) const;
|
||||
glcr::String path() const { return path_; }
|
||||
const glcr::String& path() const { return path_; }
|
||||
void set_path(const glcr::String& value) { path_ = value; }
|
||||
uint64_t attrs() const { return attrs_; }
|
||||
const uint64_t& attrs() const { return attrs_; }
|
||||
void set_attrs(const uint64_t& value) { attrs_ = value; }
|
||||
z_cap_t mem_cap() const { return mem_cap_; }
|
||||
const z_cap_t& mem_cap() const { return mem_cap_; }
|
||||
void set_mem_cap(const z_cap_t& value) { mem_cap_ = value; }
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue