#pragma once #include #include "WAVM/Inline/BasicTypes.h" #include "WAVM/Platform/Defines.h" #include "WAVM/VFS/VFS.h" namespace WAVM { namespace Platform { enum class StdDevice { in, out, err, }; WAVM_API VFS::VFD* getStdFD(StdDevice device); WAVM_API std::string getCurrentWorkingDirectory(); struct HostFS : VFS::FileSystem { // HostFS is intended to be a singleton, so prevent users from deleting it. protected: virtual ~HostFS() override {} }; WAVM_API HostFS& getHostFS(); }}