diff options
Diffstat (limited to 'include/envfs.h')
-rw-r--r-- | include/envfs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/envfs.h b/include/envfs.h index 27c4b42c6b..c8fc3759c6 100644 --- a/include/envfs.h +++ b/include/envfs.h @@ -93,8 +93,13 @@ struct envfs_super { #endif #define ENV_FLAG_NO_OVERWRITE (1 << 0) +#define PAD4(x) ((x + 3) & ~3) int envfs_load(const char *filename, const char *dirname, unsigned flags); int envfs_save(const char *filename, const char *dirname, unsigned flags); +int envfs_check_super(struct envfs_super *super, size_t *size); +int envfs_check_data(struct envfs_super *super, const void *buf, size_t size); +int envfs_load_data(struct envfs_super *super, void *buf, size_t size, + const char *dir, unsigned flags); int envfs_load_from_buf(void *buf, int len, const char *dir, unsigned flags); /* defaults to /dev/env0 */ |