From ace56d68aab79b3c15f5a69439153e5805a08662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 21 Oct 2003 03:55:53 +0000 Subject: [PATCH] Removed the AddNode() method from the Directory class. Moved gRoot into the private RootFileSystem header. Added new register_boot_file_system() function. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5098 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/boot/vfs.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/headers/private/kernel/boot/vfs.h b/headers/private/kernel/boot/vfs.h index ec85590851..2eed969ef6 100644 --- a/headers/private/kernel/boot/vfs.h +++ b/headers/private/kernel/boot/vfs.h @@ -59,8 +59,6 @@ class Directory : public Node { virtual status_t GetNextNode(void *cookie, Node **_node) = 0; virtual status_t Rewind(void *cookie) = 0; virtual bool IsEmpty() = 0; - - virtual status_t AddNode(Node *node); }; /** The console based nodes don't need cookies for I/O, they @@ -76,12 +74,10 @@ class ConsoleNode : public Node { virtual ssize_t Write(const void *buffer, size_t bufferSize); }; -/** The root file system */ -extern Directory *gRoot; - /* function prototypes */ extern status_t vfs_init(stage2_args *args); +extern void register_boot_file_system(Directory *directory); extern Directory *get_boot_file_system(stage2_args *args); extern status_t mount_file_systems(stage2_args *args); extern int open_node(Node *node, int mode);