libcryfs/src/cryfs_lib/CryOpenFile.h

28 lines
463 B
C
Raw Normal View History

#ifndef CRYFS_LIB_CRYOPENFILE_H_
#define CRYFS_LIB_CRYOPENFILE_H_
#include <boost/filesystem.hpp>
#include <sys/stat.h>
#include "utils/macros.h"
namespace cryfs {
namespace bf = boost::filesystem;
class CryOpenFile {
public:
CryOpenFile(const bf::path &path, int flags);
virtual ~CryOpenFile();
void stat(struct ::stat *result) const;
private:
int _descriptor;
DISALLOW_COPY_AND_ASSIGN(CryOpenFile);
};
}
#endif /* CRYFS_LIB_CRYOPENFILE_H_ */