[VictoriaFalls] Add a VFS yunq stub and register it.

This commit is contained in:
Drew Galbraith 2023-10-25 23:08:45 -07:00
parent f815eb5614
commit 48c7721b0f
11 changed files with 473 additions and 1 deletions

View file

@ -0,0 +1,14 @@
#include "victoriafalls_server.h"
#include <zcall.h>
glcr::ErrorOr<glcr::UniquePtr<VFSServer>> VFSServer::Create() {
z_cap_t endpoint_cap;
RET_ERR(ZEndpointCreate(&endpoint_cap));
return glcr::UniquePtr<VFSServer>(new VFSServer(endpoint_cap));
}
glcr::ErrorCode VFSServer::HandleOpenFile(const OpenFileRequest&,
OpenFileResponse&) {
return glcr::OK;
}