-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a few options to specify littlefs configurations
- Loading branch information
Showing
8 changed files
with
79 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
#if !defined(_TOYWASM_LIBWASI_LITTLEFS_WASI_LITTLEFS_H) | ||
#define _TOYWASM_LIBWASI_LITTLEFS_WASI_LITTLEFS_H | ||
|
||
#include "platform.h" | ||
|
||
__BEGIN_EXTERN_C | ||
|
||
struct wasi_instance; | ||
struct wasi_vfs; | ||
|
||
int wasi_instance_prestat_add_littlefs(struct wasi_instance *wasi, | ||
const char *path, | ||
struct wasi_vfs **vfsp); | ||
struct wasi_littlefs_mount_cfg { | ||
uint32_t disk_version; | ||
uint32_t block_size; | ||
}; | ||
|
||
int wasi_instance_prestat_add_littlefs( | ||
struct wasi_instance *wasi, const char *path, | ||
const struct wasi_littlefs_mount_cfg *cfg, struct wasi_vfs **vfsp); | ||
|
||
__END_EXTERN_C | ||
|
||
#endif /* !defined(_TOYWASM_LIBWASI_LITTLEFS_WASI_LITTLEFS_H) */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
#include <stdint.h> | ||
|
||
struct wasi_vfs; | ||
struct wasi_littlefs_mount_cfg; | ||
|
||
int wasi_littlefs_mount_file(const char *path, struct wasi_vfs **vfsp); | ||
int wasi_littlefs_mount_file(const char *path, | ||
const struct wasi_littlefs_mount_cfg *cfg, | ||
struct wasi_vfs **vfsp); |