From 08c3ab0b384ea19d6ec8a8925057594cb95f8d43 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Tue, 4 Nov 2014 02:54:23 +0100 Subject: [PATCH] Created a cryfs_lib directory for the main source code --- src/cryfs_lib/CMakeLists.txt | 1 + src/cryfs_lib/CryDevice.cpp | 14 ++++++++++++++ src/cryfs_lib/CryDevice.h | 14 ++++++++++++++ src/main.cpp | 5 ++++- 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 src/cryfs_lib/CMakeLists.txt create mode 100644 src/cryfs_lib/CryDevice.cpp create mode 100644 src/cryfs_lib/CryDevice.h diff --git a/src/cryfs_lib/CMakeLists.txt b/src/cryfs_lib/CMakeLists.txt new file mode 100644 index 00000000..4dc2b452 --- /dev/null +++ b/src/cryfs_lib/CMakeLists.txt @@ -0,0 +1 @@ +add_library(cryfs_lib CryDevice.cpp) diff --git a/src/cryfs_lib/CryDevice.cpp b/src/cryfs_lib/CryDevice.cpp new file mode 100644 index 00000000..a1a59c66 --- /dev/null +++ b/src/cryfs_lib/CryDevice.cpp @@ -0,0 +1,14 @@ +#include "../cryfs_lib/CryDevice.h" + +#include + +using namespace cryfs; + +CryDevice::CryDevice() { + std::cout << "Created CryDevice\n"; + +} + +CryDevice::~CryDevice() { +} + diff --git a/src/cryfs_lib/CryDevice.h b/src/cryfs_lib/CryDevice.h new file mode 100644 index 00000000..27076ce6 --- /dev/null +++ b/src/cryfs_lib/CryDevice.h @@ -0,0 +1,14 @@ +#ifndef CRYFS_LIB_CRYDEVICE_H_ +#define CRYFS_LIB_CRYDEVICE_H_ + +namespace cryfs { + +class CryDevice { +public: + CryDevice(); + virtual ~CryDevice(); +}; + +} + +#endif /* CRYFS_LIB_CRYDEVICE_H_ */ diff --git a/src/main.cpp b/src/main.cpp index 4b9e4682..26fee77a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,9 +4,12 @@ #include #include "buildconfig/BuildConfig.h" +#include "cryfs_lib/CryDevice.h" + int main () { - printf("Version: %d", buildconfig::VERSION::MAJOR); + printf("Version: %d\n", buildconfig::VERSION::MAJOR); + cryfs::CryDevice device; #ifdef NDEBUG printf("Release build"); #else