libcryfs/src/main.cpp

29 lines
845 B
C++
Raw Normal View History

2014-11-04 02:32:06 +01:00
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include "buildconfig/BuildConfig.h"
2014-11-16 00:10:29 +01:00
#include "fspp/fuse/Fuse.h"
#include "fspp/impl/FilesystemImpl.h"
#include "copyfs/CopyDevice.h"
#include "cryfs_lib/CryDevice.h"
2014-12-07 08:57:23 +01:00
#include "blobstore/implementations/ondisk/OnDiskBlobStore.h"
namespace bf = boost::filesystem;
2014-12-07 08:57:23 +01:00
using blobstore::ondisk::OnDiskBlobStore;
using std::make_unique;
2014-11-04 17:40:31 +01:00
int main (int argc, char *argv[])
2014-11-04 02:32:06 +01:00
{
printf("Version: %d\n", buildconfig::VERSION::MAJOR);
2014-12-07 08:57:23 +01:00
auto blobStore = make_unique<OnDiskBlobStore>(bf::path("/home/heinzi/cryfstest/root"));
auto config = make_unique<cryfs::CryConfig>(bf::path("/home/heinzi/cryfstest/config.json"));
cryfs::CryDevice device(std::move(config), std::move(blobStore));
2014-11-16 00:05:28 +01:00
fspp::FilesystemImpl fsimpl(&device);
fspp::fuse::Fuse fuse(&fsimpl);
2014-11-04 17:40:31 +01:00
fuse.run(argc, argv);
2014-11-04 02:32:06 +01:00
return 0;
}