mufs: expose MUFS_FILE and MUFS_DIR constants

tags/0.1.0
S.J.R. van Schaik 7 years ago
parent beb5f64c12
commit 27a15b3fb7
  1. 3
      include/fs/mufs.h
  2. 3
      source/fs/mufs/dir.h

@ -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);

@ -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,

Loading…
Cancel
Save