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