#pragma once #include namespace VFS { struct Node; typedef int32_t (*node_read)(Node*, uint32_t, uint32_t, char*); typedef Node* (*node_finddir)(Node*, const char*); struct Node { char name[64]; uint64_t inode; node_read read_func; node_finddir find_func; }; int32_t read(Node* node, uint32_t offset, uint32_t length, char* buffer); Node* open(const char* filename); void mount_root(Node* root); }