File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 6
6
#include < dirent.h>
7
7
#include < syscall_arch.h>
8
8
#include < unistd.h>
9
+ #include < emscripten/wasmfs.h>
9
10
10
11
#include " backend.h"
11
12
#include " file.h"
@@ -22,11 +23,6 @@ using namespace wasmfs;
22
23
23
24
extern " C" {
24
25
25
- // TODO: Replace forward declarations with #include <emscripten/wasmfs.h> and
26
- // resolve wasmfs::backend_t namespace conflicts.
27
- __wasi_fd_t wasmfs_create_file (const char * pathname, mode_t mode, backend_t backend);
28
- int wasmfs_create_directory (const char * path, int mode, backend_t backend);
29
-
30
26
// Copy the file specified by the pathname into JS.
31
27
// Return a pointer to the JS buffer in HEAPU8.
32
28
// The buffer will also contain the file length.
@@ -285,7 +281,7 @@ int _wasmfs_lstat(char* path, struct stat* statBuf) {
285
281
// The legacy JS API requires a mountpoint to already exist, so WasmFS will
286
282
// attempt to remove the target directory if it exists before replacing it with
287
283
// a mounted directory.
288
- int _wasmfs_mount (char * path, wasmfs ::backend_t created_backend) {
284
+ int _wasmfs_mount (char * path, ::backend_t created_backend) {
289
285
int err = __syscall_rmdir ((intptr_t )path);
290
286
291
287
// The legacy JS API mount requires the directory to already exist, but we
You can’t perform that action at this time.
0 commit comments