Unify (and fix) include guards

This commit is contained in:
Sebastian Meßmer 2015-10-15 13:06:51 +02:00
parent 7103b3ab07
commit 5f9c2c0611
33 changed files with 81 additions and 63 deletions

View File

@ -1,5 +1,6 @@
#ifndef CRYFS_CRYCIPHER_H #pragma once
#define CRYFS_CRYCIPHER_H #ifndef MESSMER_CRYFS_SRC_CONFIG_CRYCIPHER_H
#define MESSMER_CRYFS_SRC_CONFIG_CRYCIPHER_H
#include <vector> #include <vector>
#include <string> #include <string>

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#ifndef CRYFS_LIB_CRYCONFIG_H_ #ifndef MESSMER_CRYFS_SRC_CONFIG_CRYCONFIG_H_
#define CRYFS_LIB_CRYCONFIG_H_ #define MESSMER_CRYFS_SRC_CONFIG_CRYCONFIG_H_
#include <boost/filesystem/path.hpp> #include <boost/filesystem/path.hpp>

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#ifndef MESSMER_CRYFS_SRC_CRYCONFIGLOADER_H_ #ifndef MESSMER_CRYFS_SRC_CONFIG_CRYCONFIGLOADER_H_
#define MESSMER_CRYFS_SRC_CRYCONFIGLOADER_H_ #define MESSMER_CRYFS_SRC_CONFIG_CRYCONFIGLOADER_H_
#include <messmer/cpp-utils/pointer/unique_ref.h> #include <messmer/cpp-utils/pointer/unique_ref.h>
#include <boost/filesystem/path.hpp> #include <boost/filesystem/path.hpp>

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#ifndef CRYFS_LIB_CRYDEVICE_H_ #ifndef MESSMER_CRYFS_FILESYSTEM_CRYDEVICE_H_
#define CRYFS_LIB_CRYDEVICE_H_ #define MESSMER_CRYFS_FILESYSTEM_CRYDEVICE_H_
#include <messmer/blockstore/interface/BlockStore.h> #include <messmer/blockstore/interface/BlockStore.h>
#include "../config/CryConfigLoader.h" #include "../config/CryConfigLoader.h"

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#ifndef CRYFS_LIB_CRYDIR_H_ #ifndef MESSMER_CRYFS_FILESYSTEM_CRYDIR_H_
#define CRYFS_LIB_CRYDIR_H_ #define MESSMER_CRYFS_FILESYSTEM_CRYDIR_H_
#include <messmer/fspp/fs_interface/Dir.h> #include <messmer/fspp/fs_interface/Dir.h>
#include "CryNode.h" #include "CryNode.h"

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#ifndef CRYFS_LIB_CRYFILE_H_ #ifndef MESSMER_CRYFS_FILESYSTEM_CRYFILE_H_
#define CRYFS_LIB_CRYFILE_H_ #define MESSMER_CRYFS_FILESYSTEM_CRYFILE_H_
#include "parallelaccessfsblobstore/FileBlobRef.h" #include "parallelaccessfsblobstore/FileBlobRef.h"
#include "parallelaccessfsblobstore/DirBlobRef.h" #include "parallelaccessfsblobstore/DirBlobRef.h"

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#ifndef CRYFS_LIB_CRYNODE_H_ #ifndef MESSMER_CRYFS_FILESYSTEM_CRYNODE_H_
#define CRYFS_LIB_CRYNODE_H_ #define MESSMER_CRYFS_FILESYSTEM_CRYNODE_H_
#include <messmer/fspp/fs_interface/Node.h> #include <messmer/fspp/fs_interface/Node.h>
#include "messmer/cpp-utils/macros.h" #include "messmer/cpp-utils/macros.h"

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#ifndef CRYFS_LIB_CRYOPENFILE_H_ #ifndef MESSMER_CRYFS_FILESYSTEM_CRYOPENFILE_H_
#define CRYFS_LIB_CRYOPENFILE_H_ #define MESSMER_CRYFS_FILESYSTEM_CRYOPENFILE_H_
#include "messmer/fspp/fs_interface/OpenFile.h" #include "messmer/fspp/fs_interface/OpenFile.h"
#include "parallelaccessfsblobstore/FileBlobRef.h" #include "parallelaccessfsblobstore/FileBlobRef.h"

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#ifndef CRYFS_LIB_CRYSYMLINK_H_ #ifndef MESSMER_CRYFS_FILESYSTEM_CRYSYMLINK_H_
#define CRYFS_LIB_CRYSYMLINK_H_ #define MESSMER_CRYFS_FILESYSTEM_CRYSYMLINK_H_
#include <messmer/fspp/fs_interface/Symlink.h> #include <messmer/fspp/fs_interface/Symlink.h>
#include "CryNode.h" #include "CryNode.h"

View File

@ -1,5 +1,6 @@
#ifndef CRYFS_CACHINGFSBLOBSTORE_CACHINGFSBLOBSTORE_H #pragma once
#define CRYFS_CACHINGFSBLOBSTORE_CACHINGFSBLOBSTORE_H #ifndef MESSMER_CRYFS_FILESYSTEM_CACHINGFSBLOBSTORE_CACHINGFSBLOBSTORE_H
#define MESSMER_CRYFS_FILESYSTEM_CACHINGFSBLOBSTORE_CACHINGFSBLOBSTORE_H
#include <messmer/cpp-utils/pointer/unique_ref.h> #include <messmer/cpp-utils/pointer/unique_ref.h>
#include "../fsblobstore/FsBlobStore.h" #include "../fsblobstore/FsBlobStore.h"

View File

@ -1,5 +1,6 @@
#ifndef CRYFS_FILESYSTEM_CACHINGFSBLOBSTORE_DIRBLOBREF_H #pragma once
#define CRYFS_FILESYSTEM_CACHINGFSBLOBSTORE_DIRBLOBREF_H #ifndef MESSMER_CRYFS_FILESYSTEM_CACHINGFSBLOBSTORE_DIRBLOBREF_H
#define MESSMER_CRYFS_FILESYSTEM_CACHINGFSBLOBSTORE_DIRBLOBREF_H
#include "FsBlobRef.h" #include "FsBlobRef.h"
#include "../fsblobstore/DirBlob.h" #include "../fsblobstore/DirBlob.h"

View File

@ -1,5 +1,6 @@
#ifndef CRYFS_FILESYSTEM_CACHINGFSBLOBSTORE_FILEBLOBREF_H #pragma once
#define CRYFS_FILESYSTEM_CACHINGFSBLOBSTORE_FILEBLOBREF_H #ifndef MESSMER_CRYFS_FILESYSTEM_CACHINGFSBLOBSTORE_FILEBLOBREF_H
#define MESSMER_CRYFS_FILESYSTEM_CACHINGFSBLOBSTORE_FILEBLOBREF_H
#include "FsBlobRef.h" #include "FsBlobRef.h"
#include "../fsblobstore/FileBlob.h" #include "../fsblobstore/FileBlob.h"

View File

@ -1,5 +1,6 @@
#ifndef CRYFS_CACHINGFSBLOBSTORE_FSBLOBREF_H #pragma once
#define CRYFS_CACHINGFSBLOBSTORE_FSBLOBREF_H #ifndef MESSMER_CRYFS_FILESYSTEM_CACHINGFSBLOBSTORE_FSBLOBREF_H
#define MESSMER_CRYFS_FILESYSTEM_CACHINGFSBLOBSTORE_FSBLOBREF_H
#include "../fsblobstore/FsBlob.h" #include "../fsblobstore/FsBlob.h"

View File

@ -1,5 +1,6 @@
#ifndef CRYFS_FILESYSTEM_CACHINGFSBLOBSTORE_SYMLINKBLOBREF_H #pragma once
#define CRYFS_FILESYSTEM_CACHINGFSBLOBSTORE_SYMLINKBLOBREF_H #ifndef MESSMER_CRYFS_FILESYSTEM_CACHINGFSBLOBSTORE_SYMLINKBLOBREF_H
#define MESSMER_CRYFS_FILESYSTEM_CACHINGFSBLOBSTORE_SYMLINKBLOBREF_H
#include "FsBlobRef.h" #include "FsBlobRef.h"
#include "../fsblobstore/SymlinkBlob.h" #include "../fsblobstore/SymlinkBlob.h"

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#ifndef CRYFS_FSBLOBSTORE_DIRBLOB_H_ #ifndef MESSMER_CRYFS_FILESYSTEM_FSBLOBSTORE_DIRBLOB_H_
#define CRYFS_FSBLOBSTORE_DIRBLOB_H_ #define MESSMER_CRYFS_FILESYSTEM_FSBLOBSTORE_DIRBLOB_H_
#include <messmer/blockstore/utils/Key.h> #include <messmer/blockstore/utils/Key.h>
#include <messmer/cpp-utils/macros.h> #include <messmer/cpp-utils/macros.h>

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#ifndef CRYFS_FSBLOBSTORE_FILEBLOB_H_ #ifndef MESSMER_CRYFS_FILESYSTEM_FSBLOBSTORE_FILEBLOB_H_
#define CRYFS_FSBLOBSTORE_FILEBLOB_H_ #define MESSMER_CRYFS_FILESYSTEM_FSBLOBSTORE_FILEBLOB_H_
#include "FsBlob.h" #include "FsBlob.h"

View File

@ -1,5 +1,6 @@
#ifndef CRYFS_FSBLOBSTORE_FSBLOB_H #pragma once
#define CRYFS_FSBLOBSTORE_FSBLOB_H #ifndef MESSMER_CRYFS_FILESYSTEM_FSBLOBSTORE_FSBLOB_H
#define MESSMER_CRYFS_FILESYSTEM_FSBLOBSTORE_FSBLOB_H
#include <messmer/cpp-utils/pointer/unique_ref.h> #include <messmer/cpp-utils/pointer/unique_ref.h>
#include <messmer/blobstore/interface/Blob.h> #include <messmer/blobstore/interface/Blob.h>

View File

@ -1,5 +1,6 @@
#ifndef CRYFS_FSBLOBSTORE_FSBLOBSTORE_H #pragma once
#define CRYFS_FSBLOBSTORE_FSBLOBSTORE_H #ifndef MESSMER_CRYFS_FILESYSTEM_FSBLOBSTORE_FSBLOBSTORE_H
#define MESSMER_CRYFS_FILESYSTEM_FSBLOBSTORE_FSBLOBSTORE_H
#include <messmer/cpp-utils/lock/LockPool.h> #include <messmer/cpp-utils/lock/LockPool.h>
#include <messmer/cpp-utils/pointer/unique_ref.h> #include <messmer/cpp-utils/pointer/unique_ref.h>

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#ifndef CRYFS_FSBLOBSTORE_MAGICNUMBERS_H_ #ifndef MESSMER_CRYFS_FILESYSTEM_FSBLOBSTORE_MAGICNUMBERS_H_
#define CRYFS_FSBLOBSTORE_MAGICNUMBERS_H_ #define MESSMER_CRYFS_FILESYSTEM_FSBLOBSTORE_MAGICNUMBERS_H_
namespace cryfs { namespace cryfs {
namespace fsblobstore { namespace fsblobstore {

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#ifndef CRYFS_FSBLOBSTORE_SYMLINKBLOB_H_ #ifndef MESSMER_CRYFS_FILESYSTEM_FSBLOBSTORE_SYMLINKBLOB_H_
#define CRYFS_FSBLOBSTORE_SYMLINKBLOB_H_ #define MESSMER_CRYFS_FILESYSTEM_FSBLOBSTORE_SYMLINKBLOB_H_
#include <boost/filesystem/path.hpp> #include <boost/filesystem/path.hpp>
#include "FsBlob.h" #include "FsBlob.h"

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#ifndef CRYFS_FILESYSTEM_FSBLOBSTORE_UTILS_DIRENTRY_H #ifndef MESSMER_CRYFS_FILESYSTEM_FSBLOBSTORE_UTILS_DIRENTRY_H
#define CRYFS_FILESYSTEM_FSBLOBSTORE_UTILS_DIRENTRY_H #define MESSMER_CRYFS_FILESYSTEM_FSBLOBSTORE_UTILS_DIRENTRY_H
#include <messmer/blockstore/utils/Key.h> #include <messmer/blockstore/utils/Key.h>
#include <messmer/fspp/fs_interface/Dir.h> #include <messmer/fspp/fs_interface/Dir.h>

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#ifndef CRYFS_FILESYSTEM_FSBLOBSTORE_UTILS_DIRENTRYLIST_H #ifndef MESSMER_CRYFS_FILESYSTEM_FSBLOBSTORE_UTILS_DIRENTRYLIST_H
#define CRYFS_FILESYSTEM_FSBLOBSTORE_UTILS_DIRENTRYLIST_H #define MESSMER_CRYFS_FILESYSTEM_FSBLOBSTORE_UTILS_DIRENTRYLIST_H
#include <messmer/cpp-utils/data/Data.h> #include <messmer/cpp-utils/data/Data.h>
#include "DirEntry.h" #include "DirEntry.h"

View File

@ -1,5 +1,6 @@
#ifndef CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_DIRBLOBREF_H #pragma once
#define CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_DIRBLOBREF_H #ifndef MESSMER_CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_DIRBLOBREF_H
#define MESSMER_CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_DIRBLOBREF_H
#include "FsBlobRef.h" #include "FsBlobRef.h"
#include "../cachingfsblobstore/DirBlobRef.h" #include "../cachingfsblobstore/DirBlobRef.h"

View File

@ -1,5 +1,6 @@
#ifndef CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_FILEBLOBREF_H #pragma once
#define CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_FILEBLOBREF_H #ifndef MESSMER_CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_FILEBLOBREF_H
#define MESSMER_CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_FILEBLOBREF_H
#include "FsBlobRef.h" #include "FsBlobRef.h"
#include "../cachingfsblobstore/FileBlobRef.h" #include "../cachingfsblobstore/FileBlobRef.h"

View File

@ -1,5 +1,6 @@
#ifndef CRYFS_PARALLELACCESSFSBLOBSTORE_FSBLOBREF_H #pragma once
#define CRYFS_PARALLELACCESSFSBLOBSTORE_FSBLOBREF_H #ifndef MESSMER_CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_FSBLOBREF_H
#define MESSMER_CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_FSBLOBREF_H
#include <messmer/parallelaccessstore/ParallelAccessStore.h> #include <messmer/parallelaccessstore/ParallelAccessStore.h>
#include "../cachingfsblobstore/FsBlobRef.h" #include "../cachingfsblobstore/FsBlobRef.h"

View File

@ -1,5 +1,6 @@
#ifndef CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_PARALLELACCESSFSBLOBSTORE_H #pragma once
#define CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_PARALLELACCESSFSBLOBSTORE_H #ifndef MESSMER_CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_PARALLELACCESSFSBLOBSTORE_H
#define MESSMER_CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_PARALLELACCESSFSBLOBSTORE_H
#include <messmer/parallelaccessstore/ParallelAccessStore.h> #include <messmer/parallelaccessstore/ParallelAccessStore.h>
#include "FileBlobRef.h" #include "FileBlobRef.h"

View File

@ -1,3 +1,4 @@
#pragma once
#ifndef MESSMER_CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_PARALLELACCESSFSBLOBSTOREADAPTER_H_ #ifndef MESSMER_CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_PARALLELACCESSFSBLOBSTOREADAPTER_H_
#define MESSMER_CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_PARALLELACCESSFSBLOBSTOREADAPTER_H_ #define MESSMER_CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_PARALLELACCESSFSBLOBSTOREADAPTER_H_

View File

@ -1,5 +1,6 @@
#ifndef CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_SYMLINKBLOBREF_H #pragma once
#define CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_SYMLINKBLOBREF_H #ifndef MESSMER_CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_SYMLINKBLOBREF_H
#define MESSMER_CRYFS_FILESYSTEM_PARALLELACCESSFSBLOBSTORE_SYMLINKBLOBREF_H
#include "FsBlobRef.h" #include "FsBlobRef.h"
#include "../cachingfsblobstore/SymlinkBlobRef.h" #include "../cachingfsblobstore/SymlinkBlobRef.h"

View File

@ -1,4 +1,4 @@
#include <messmer/blockstore/implementations/ondisk/OnDiskBlockStore.h> ß#include <messmer/blockstore/implementations/ondisk/OnDiskBlockStore.h>
#include <messmer/blockstore/implementations/inmemory/InMemoryBlockStore.h> #include <messmer/blockstore/implementations/inmemory/InMemoryBlockStore.h>
#include <messmer/blockstore/implementations/inmemory/InMemoryBlock.h> #include <messmer/blockstore/implementations/inmemory/InMemoryBlock.h>
#include <cmath> #include <cmath>

View File

@ -1,5 +1,6 @@
#ifndef CRYFS_PROGRAMOPTIONS_PARSER_H #pragma once
#define CRYFS_PROGRAMOPTIONS_PARSER_H #ifndef MESSMER_CRYFS_PROGRAMOPTIONS_PARSER_H
#define MESSMER_CRYFS_PROGRAMOPTIONS_PARSER_H
#include "ProgramOptions.h" #include "ProgramOptions.h"
#include <boost/program_options.hpp> #include <boost/program_options.hpp>

View File

@ -1,5 +1,6 @@
#ifndef CRYFS_PROGRAMOPTIONS_PROGRAMOPTIONS_H #pragma once
#define CRYFS_PROGRAMOPTIONS_PROGRAMOPTIONS_H #ifndef MESSMER_CRYFS_PROGRAMOPTIONS_PROGRAMOPTIONS_H
#define MESSMER_CRYFS_PROGRAMOPTIONS_PROGRAMOPTIONS_H
#include <vector> #include <vector>
#include <string> #include <string>

View File

@ -1,5 +1,6 @@
#ifndef CRYFS_PROGRAMOPTIONS_UTILS_H #pragma once
#define CRYFS_PROGRAMOPTIONS_UTILS_H #ifndef MESSMER_CRYFS_PROGRAMOPTIONS_UTILS_H
#define MESSMER_CRYFS_PROGRAMOPTIONS_UTILS_H
#include <utility> #include <utility>
#include <vector> #include <vector>

View File

@ -1,5 +1,6 @@
#ifndef CRYFS_TEST_PROGRAMOPTIONS_PROGRAMOPTIONSTEST_H #pragma once
#define CRYFS_TEST_PROGRAMOPTIONS_PROGRAMOPTIONSTEST_H #ifndef MESSMER_CRYFS_TEST_PROGRAMOPTIONS_PROGRAMOPTIONSTEST_H
#define MESSMER_CRYFS_TEST_PROGRAMOPTIONS_PROGRAMOPTIONSTEST_H
#include <google/gtest/gtest.h> #include <google/gtest/gtest.h>