libcryfs/fs_interface/Device.h
2015-10-15 13:04:57 +02:00

23 lines
487 B
C++

#pragma once
#ifndef MESSMER_FSPP_FSINTERFACE_DEVICE_H_
#define MESSMER_FSPP_FSINTERFACE_DEVICE_H_
#include <boost/filesystem.hpp>
#include <messmer/cpp-utils/pointer/unique_ref.h>
#include <sys/statvfs.h>
namespace fspp {
class Node;
class Device {
public:
virtual ~Device() {}
virtual void statfs(const boost::filesystem::path &path, struct ::statvfs *fsstat) = 0;
virtual boost::optional<cpputils::unique_ref<Node>> Load(const boost::filesystem::path &path) = 0;
};
}
#endif