git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: simple device abstraction layer
[lunaix-os.git]
/
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 48b35b94889bf941313ce42ec73206f04f46a7c3..bd9dfeb63032dd4885397e28b239737df88c02a8 100644
(file)
--- a/
lunaix-os/includes/lunaix/fs/twifs.h
+++ b/
lunaix-os/includes/lunaix/fs/twifs.h
@@
-5,7
+5,9
@@
struct twifs_node
{
struct twifs_node
{
+ struct v_inode* inode;
struct hstr name;
struct hstr name;
+ void* data;
uint32_t itype;
struct llist_header children;
struct llist_header siblings;
uint32_t itype;
struct llist_header children;
struct llist_header siblings;
@@
-16,9
+18,15
@@
void
twifs_init();
struct twifs_node*
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);
struct twifs_node*
twifs_toplevel_node(const char* name, int name_len);
+void
+twifs_rm_node(struct twifs_node* node);
+
#endif /* __LUNAIX_TWIFS_H */
#endif /* __LUNAIX_TWIFS_H */