feat: implement rmdir(2), unlink(2), unlinkat(2)
[lunaix-os.git] / lunaix-os / includes / lunaix / fs / twifs.h
index 8df3ddcf61ef031f09aae295e5aed1b10e68553a..31875ef24fab16856de08bd40bf250ae22d709f8 100644 (file)
@@ -7,6 +7,7 @@ struct twifs_node
 {
     struct v_inode* inode;
     struct hstr name;
+    void* data;
     uint32_t itype;
     struct llist_header children;
     struct llist_header siblings;
@@ -25,4 +26,7 @@ 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);
 
+int
+twifs_rm_node(struct twifs_node* node);
+
 #endif /* __LUNAIX_TWIFS_H */