diff options
Diffstat (limited to 'src/build_log.h')
-rw-r--r-- | src/build_log.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/build_log.h b/src/build_log.h index 2442f70..265f378 100644 --- a/src/build_log.h +++ b/src/build_log.h @@ -33,7 +33,14 @@ struct BuildLog { // Lookup a previously-run command by its output path. LogEntry* LookupByOutput(const string& path); + // Serialize an entry into a log file. + void WriteEntry(FILE* f, const LogEntry& entry); + + // Rewrite the known log entries, throwing away old data. + bool Recompact(const string& path, string* err); + typedef map<string, LogEntry*> Log; Log log_; FILE* log_file_; + bool needs_recompaction_; }; |