X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/5fc669295655ec0eea7722aa4a48921dc6b700ec..7515e526342f6ee07cbe92f5a458f1c2c4a1fcaf:/lunaix-os/includes/lunaix/fs/twifs.h diff --git a/lunaix-os/includes/lunaix/fs/twifs.h b/lunaix-os/includes/lunaix/fs/twifs.h index 48b35b9..bd9dfeb 100644 --- a/lunaix-os/includes/lunaix/fs/twifs.h +++ b/lunaix-os/includes/lunaix/fs/twifs.h @@ -5,7 +5,9 @@ struct twifs_node { + struct v_inode* inode; struct hstr name; + void* data; uint32_t itype; struct llist_header children; struct llist_header siblings; @@ -16,9 +18,15 @@ void twifs_init(); struct twifs_node* -twifs_child_node(struct twifs_node* parent, const char* name, int name_len); +twifs_file_node(struct twifs_node* parent, const char* name, int name_len); + +struct twifs_node* +twifs_dir_node(struct twifs_node* parent, const char* name, int name_len); struct twifs_node* twifs_toplevel_node(const char* name, int name_len); +void +twifs_rm_node(struct twifs_node* node); + #endif /* __LUNAIX_TWIFS_H */