2014-11-15 23:47:38 +01:00
|
|
|
#pragma once
|
2015-10-15 13:04:57 +02:00
|
|
|
#ifndef MESSMER_FSPP_FSINTERFACE_DEVICE_H_
|
|
|
|
#define MESSMER_FSPP_FSINTERFACE_DEVICE_H_
|
2014-11-15 23:47:38 +01:00
|
|
|
|
|
|
|
#include <boost/filesystem.hpp>
|
2015-06-21 17:44:30 +02:00
|
|
|
#include <messmer/cpp-utils/pointer/unique_ref.h>
|
2014-11-15 23:47:38 +01:00
|
|
|
#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;
|
2015-06-18 19:30:52 +02:00
|
|
|
virtual boost::optional<cpputils::unique_ref<Node>> Load(const boost::filesystem::path &path) = 0;
|
2014-11-15 23:47:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-02-17 00:48:49 +01:00
|
|
|
#endif
|