From 9fb351a139a56fc7b1ece549894f8fc31fa887cd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Jul 2014 20:58:14 +0200 Subject: *Save, *State: use the OutputStream API instead of FILE* --- src/StateFile.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/StateFile.hxx') 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 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(). */ -- cgit v1.2.3