#ifndef VFS_H
#define VFS_H

#include <stdint.h>

struct vfs {
	struct vfs *next[256];
	uint8_t refc;
	struct vfs *link;
	void *data;
};

extern struct vfs *vfs_root;

void        vfs_add(struct vfs *root, const char *path, void *data);
struct vfs *vfs_get(struct vfs *root, const char *path);
void        vfs_lnk(struct vfs *root, const char *path, struct vfs *link);

#endif/*VFS_H*/