summaryrefslogtreecommitdiff
path: root/src/StateFile.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-07-30 20:58:14 +0200
committerMax Kellermann <max@duempel.org>2014-07-30 22:17:01 +0200
commit9fb351a139a56fc7b1ece549894f8fc31fa887cd (patch)
tree7c9ce42a1262af587f1b9fede2b24ff39cef93fc /src/StateFile.hxx
parent0d0ccacdf3e154b1cc27a0840fce80ac13f9641c (diff)
*Save, *State: use the OutputStream API instead of FILE*
Diffstat (limited to 'src/StateFile.hxx')
-rw-r--r--src/StateFile.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/StateFile.hxx b/src/StateFile.hxx
index e35797b95..609651c92 100644
--- a/src/StateFile.hxx
+++ b/src/StateFile.hxx
@@ -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().
*/