libcryfs/src/cryfs_lib/CryFile.h

26 lines
434 B
C
Raw Normal View History

#pragma once
#ifndef CRYFS_LIB_CRYFILE_H_
#define CRYFS_LIB_CRYFILE_H_
2014-11-16 00:10:29 +01:00
#include <fspp/fs_interface/File.h>
#include "CryNode.h"
namespace cryfs {
2014-11-16 00:05:28 +01:00
class CryFile: public fspp::File, CryNode {
public:
2014-12-07 08:57:23 +01:00
CryFile();
virtual ~CryFile();
2014-11-16 00:05:28 +01:00
std::unique_ptr<fspp::OpenFile> open(int flags) const override;
void truncate(off_t size) const override;
void unlink() override;
private:
DISALLOW_COPY_AND_ASSIGN(CryFile);
};
2014-12-07 08:57:23 +01:00
}
#endif