X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/4769a870917b98723690aa336d12d0656769528b..5fc669295655ec0eea7722aa4a48921dc6b700ec:/lunaix-os/includes/lunaix/fs/twifs.h?ds=sidebyside diff --git a/lunaix-os/includes/lunaix/fs/twifs.h b/lunaix-os/includes/lunaix/fs/twifs.h new file mode 100644 index 0000000..48b35b9 --- /dev/null +++ b/lunaix-os/includes/lunaix/fs/twifs.h @@ -0,0 +1,24 @@ +#ifndef __LUNAIX_TWIFS_H +#define __LUNAIX_TWIFS_H + +#include + +struct twifs_node +{ + struct hstr name; + uint32_t itype; + struct llist_header children; + struct llist_header siblings; + struct v_file_ops fops; +}; + +void +twifs_init(); + +struct twifs_node* +twifs_child_node(struct twifs_node* parent, const char* name, int name_len); + +struct twifs_node* +twifs_toplevel_node(const char* name, int name_len); + +#endif /* __LUNAIX_TWIFS_H */