feat: open(2), close(2), mkdir(2) and readdir(2) syscall
[lunaix-os.git] / lunaix-os / includes / lunaix / fs / twifs.h
index 48b35b94889bf941313ce42ec73206f04f46a7c3..8df3ddcf61ef031f09aae295e5aed1b10e68553a 100644 (file)
@@ -5,6 +5,7 @@
 
 struct twifs_node
 {
+    struct v_inode* inode;
     struct hstr name;
     uint32_t itype;
     struct llist_header children;
@@ -16,7 +17,10 @@ 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);