mufs: expose MUFS_FILE and MUFS_DIR constants

This commit is contained in:
S.J.R. van Schaik 2017-06-12 13:51:27 +02:00
parent beb5f64c12
commit 27a15b3fb7
2 changed files with 3 additions and 3 deletions

View file

@ -35,6 +35,9 @@ struct mufs_stat {
#define MUFS_WRITE BIT(1)
#define MUFS_APPEND BIT(2)
#define MUFS_FILE BIT(0)
#define MUFS_DIR BIT(1)
int mufs_mount(struct mufs *fs, struct flash_dev *dev);
int mufs_format(struct flash_dev *dev);

View file

@ -12,9 +12,6 @@ struct mufs_dentry {
uint16_t path_len;
} __attribute__((packed));
#define MUFS_FILE BIT(0)
#define MUFS_DIR BIT(1)
struct mufs_tree *resolve_path(struct mufs *fs, const char *path,
struct mufs_stat *stat);
size_t read_dirent(struct mufs *fs, struct mufs_tree *tree,