// Generated File -- DO NOT MODIFY. #pragma once #include #include #include #include "example.yunq.h" #include "example.yunq.client.h" class VFSServerBase { public: VFSServerBase(z_cap_t VFS_cap) : endpoint_(VFS_cap) {} VFSServerBase(const VFSServerBase&) = delete; VFSServerBase(VFSServerBase&&) = delete; glcr::ErrorOr CreateClient(); [[nodiscard]] Thread RunServer(); [[nodiscard]] virtual glcr::ErrorCode Handleopen(const OpenFileRequest&, File&) = 0; private: z_cap_t endpoint_; friend void VFSServerBaseThreadBootstrap(void*); void ServerThread(); [[nodiscard]] glcr::ErrorCode HandleRequest(const glcr::ByteBuffer& request, const glcr::CapBuffer& req_caps, glcr::ByteBuffer& response, uint64_t& resp_length, glcr::CapBuffer& resp_caps); };