Adding locks and parents to vfs.

Progress on #305.
This commit is contained in:
Ben Vanik
2015-06-29 05:07:29 -07:00
parent 9a80b5e5be
commit 0104a2290f
16 changed files with 65 additions and 40 deletions

View File

@@ -62,6 +62,7 @@ class Entry {
void Dump(xe::StringBuffer* string_buffer, int indent);
Device* device() const { return device_; }
Entry* parent() const { return parent_; }
const std::string& path() const { return path_; }
const std::string& absolute_path() const { return absolute_path_; }
const std::string& name() const { return name_; }
@@ -91,9 +92,10 @@ class Entry {
}
protected:
Entry(Device* device, const std::string& path);
Entry(Device* device, Entry* parent, const std::string& path);
Device* device_;
Entry* parent_;
std::string path_;
std::string absolute_path_;
std::string name_;