aboutsummaryrefslogtreecommitdiffstats
path: root/src/StateFile.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/StateFile.hxx')
-rw-r--r--src/StateFile.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/StateFile.hxx b/src/StateFile.hxx
index 7d57d5422..79693c70b 100644
--- a/src/StateFile.hxx
+++ b/src/StateFile.hxx
@@ -48,6 +48,11 @@ public:
void Read();
void Write();
+ /**
+ * Schedules a write if MPD's state was modified.
+ */
+ void CheckModified();
+
private:
/**
* Save the current state versions for use with IsModified().
@@ -61,8 +66,6 @@ private:
gcc_pure
bool IsModified() const;
- void AutoWrite();
-
/* virtual methods from TimeoutMonitor */
virtual bool OnTimeout() override;
};