aboutsummaryrefslogtreecommitdiffstats
path: root/src/StateFile.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-04-08 22:34:44 +0200
committerMax Kellermann <max@duempel.org>2013-04-08 23:11:36 +0200
commit96882175f15230fe2cf9b4e7f3a7f29b5697fe26 (patch)
treed349c29e72cca8cc56aebd70d3f6f265925232ee /src/StateFile.hxx
parent484841fc9e1e038a04c5c52cf1d9443fd7e337fa (diff)
downloadmpd-96882175f15230fe2cf9b4e7f3a7f29b5697fe26.tar.gz
mpd-96882175f15230fe2cf9b4e7f3a7f29b5697fe26.tar.xz
mpd-96882175f15230fe2cf9b4e7f3a7f29b5697fe26.zip
StateFile: move code to RememberVersions(), IsModified()
Diffstat (limited to 'src/StateFile.hxx')
-rw-r--r--src/StateFile.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/StateFile.hxx b/src/StateFile.hxx
index a81b8d91f..7d57d5422 100644
--- a/src/StateFile.hxx
+++ b/src/StateFile.hxx
@@ -49,6 +49,18 @@ public:
void Write();
private:
+ /**
+ * Save the current state versions for use with IsModified().
+ */
+ void RememberVersions();
+
+ /**
+ * Check if MPD's state was modified since the last
+ * RememberVersions() call.
+ */
+ gcc_pure
+ bool IsModified() const;
+
void AutoWrite();
/* virtual methods from TimeoutMonitor */