libcryfs/fs_interface/Device.h
2015-02-17 00:48:49 +01:00

23 lines
393 B
C++

#pragma once
#ifndef FSPP_DEVICE_H_
#define FSPP_DEVICE_H_
#include <boost/filesystem.hpp>
#include <memory>
#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 std::unique_ptr<Node> Load(const boost::filesystem::path &path) = 0;
};
}
#endif