blob: da3fd1b06e7966f2405f87c16c15594c71d3103c [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef LIB_ESCHER_FS_FUCHSIA_DATA_SOURCE_H_
#define LIB_ESCHER_FS_FUCHSIA_DATA_SOURCE_H_
#include <lib/escher/fs/hack_filesystem.h>
#include <lib/vfs/cpp/pseudo_dir.h>
#include <memory>
namespace escher {
// The data source from Fuchsia filesystem.
class FuchsiaDataSource : public HackFilesystem {
public:
FuchsiaDataSource(const std::shared_ptr<vfs::PseudoDir>& root_dir);
FuchsiaDataSource();
// |HackFilesystem|
bool InitializeWithRealFiles(const std::vector<HackFilePath>& paths,
const char* root) override;
private:
std::shared_ptr<vfs::PseudoDir> root_dir_;
};
} // namespace escher
#endif // LIB_ESCHER_FS_FUCHSIA_DATA_SOURCE_H_