*Save, *State: use the OutputStream API instead of FILE*

This commit is contained in:
Max Kellermann
2014-07-30 20:58:14 +02:00
parent 0d0ccacdf3
commit 9fb351a139
23 changed files with 169 additions and 133 deletions

View File

@@ -27,6 +27,8 @@
#include <string>
struct Partition;
class OutputStream;
class BufferedOutputStream;
class StateFile final : private TimeoutMonitor {
AllocatedPath path;
@@ -53,6 +55,9 @@ public:
void CheckModified();
private:
bool Write(OutputStream &os, Error &error);
void Write(BufferedOutputStream &os);
/**
* Save the current state versions for use with IsModified().
*/