[caching] factor metadata_dump out of cache_dump

This commit is contained in:
Joe Thornber
2013-10-09 10:22:06 +01:00
parent 97f4f0b0bb
commit 9b9b7771e9
4 changed files with 155 additions and 119 deletions

17
caching/metadata_dump.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef CACHING_METADATA_DUMP_H
#define CACHING_METADATA_DUMP_H
#include "caching/metadata.h"
#include "caching/emitter.h"
//----------------------------------------------------------------
namespace caching {
// If 'repair' is set then any metadata damage will be stepped
// around. Otherwise an exception will be thrown.
void metadata_dump(metadata::ptr md, emitter::ptr out, bool repair);
}
//----------------------------------------------------------------
#endif