-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cachemgr: compare cache mappings method to find differences
between the configuration file and actual directories on the filesystem
- Loading branch information
1 parent
2f2e419
commit 1f91d62
Showing
5 changed files
with
247 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# create library | ||
add_library(libcachemgr-private STATIC | ||
cache_mapping.hpp | ||
cachemgr.cpp | ||
cachemgr.hpp | ||
config.cpp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
#include <list> | ||
|
||
namespace libcachemgr { | ||
|
||
/** | ||
* Represents a cache mapping in the configuration file. | ||
*/ | ||
struct cache_mapping_t | ||
{ | ||
const std::string type; // unused for now, type might change in the future | ||
const std::string source; | ||
const std::string target; | ||
}; | ||
|
||
/** | ||
* List of cache mappings in the configuration file. | ||
*/ | ||
using cache_mappings_t = std::list<cache_mapping_t>; | ||
|
||
} // namespace libcachemgr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters