From 96882175f15230fe2cf9b4e7f3a7f29b5697fe26 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 8 Apr 2013 22:34:44 +0200 Subject: StateFile: move code to RememberVersions(), IsModified() --- src/StateFile.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/StateFile.hxx') 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 */ -- cgit v1.2.3