The Directory abstract base class has a new method IsEmpty().

New/changed function prototypes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4879 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-10-01 01:04:08 +00:00
parent 6e5bc20607
commit 774d1ff304

View File

@ -54,6 +54,7 @@ class Directory : public Node {
virtual status_t GetNextEntry(void *cookie, char *nameBuffer, size_t bufferSize) = 0;
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);
};
@ -74,19 +75,17 @@ class ConsoleNode : public Node {
/** The root file system */
extern Directory *gRoot;
extern "C" {
#endif /* __cplusplus */
/* function prototypes */
extern status_t vfs_init(stage2_args *args);
extern status_t mount_boot_file_systems();
extern status_t add_partitions_for(int fd);
#ifdef __cplusplus
// this function is only available in C++
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);
extern int open_from(Directory *directory, const char *path, int mode);
}
#endif
extern status_t add_partitions_for(int fd, bool mountFileSystems);
extern status_t add_partitions_for(Node *device, bool mountFileSystems);
#endif /* __cplusplus */
#endif /* KERNEL_BOOT_VFS_H */