StateFile: move code to RememberVersions(), IsModified()

This commit is contained in:
Max Kellermann
2013-04-08 22:34:44 +02:00
parent 484841fc9e
commit 96882175f1
2 changed files with 33 additions and 12 deletions

View File

@@ -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 */