Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/system/lib/wasmfs/wasmfs_internal.h
6174 views
1
// Copyright 2021 The Emscripten Authors. All rights reserved.
2
// Emscripten is available under two separate licenses, the MIT license and the
3
// University of Illinois/NCSA Open Source License. Both these licenses can be
4
// found in the LICENSE file.
5
6
#ifdef __cplusplus
7
extern "C" {
8
#endif
9
10
// These helper functions are defined in library_wasmfs.js.
11
12
int _wasmfs_get_num_preloaded_files();
13
int _wasmfs_get_num_preloaded_dirs();
14
int _wasmfs_get_preloaded_file_mode(int index);
15
void _wasmfs_get_preloaded_parent_path(int index, char* parentPath);
16
void _wasmfs_get_preloaded_path_name(int index, char* fileName);
17
void _wasmfs_get_preloaded_child_path(int index, char* childName);
18
size_t _wasmfs_get_preloaded_file_size(uint32_t index);
19
void _wasmfs_copy_preloaded_file_data(uint32_t index, uint8_t* data);
20
21
// Returns the next character from stdin, or -1 on EOF.
22
int _wasmfs_stdin_get_char(void);
23
24
#ifdef __cplusplus
25
}
26
#endif
27
28