libcryfs/fs_interface/Device.h

23 lines
393 B
C
Raw Normal View History

2014-11-15 23:47:38 +01:00
#pragma once
2014-11-16 00:05:28 +01:00
#ifndef FSPP_DEVICE_H_
#define FSPP_DEVICE_H_
2014-11-15 23:47:38 +01:00
#include <boost/filesystem.hpp>
#include <memory>
#include <sys/statvfs.h>
2014-11-16 00:05:28 +01:00
namespace fspp {
2014-11-15 23:47:38 +01:00
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;
};
}
2015-02-17 00:48:49 +01:00
#endif