#pragma once #include #include "fs/ext2/ext2_driver.h" #include "victoriafalls/victoriafalls.yunq.server.h" class VFSServer : public VFSServerBase { public: static glcr::ErrorOr> Create(Ext2Driver& driver); glcr::ErrorCode HandleOpenFile(const OpenFileRequest&, OpenFileResponse&) override; private: // FIXME: Don't store this as a reference. Ext2Driver& driver_; VFSServer(z_cap_t endpoint_cap, Ext2Driver& driver) : VFSServerBase(endpoint_cap), driver_(driver) {} };