diff options
author | Max Kellermann <max@duempel.org> | 2014-01-15 12:05:44 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-15 12:05:44 +0100 |
commit | 9fb82f9687c10ee8430437a97e263c85f968bddb (patch) | |
tree | 16ee0270c77e1a9662ac6ef3ba4e0959d5488f06 /src/DetachedSong.hxx | |
parent | df80deb0708f9abe911dc3533c0d3b310f73650c (diff) | |
download | mpd-9fb82f9687c10ee8430437a97e263c85f968bddb.tar.gz mpd-9fb82f9687c10ee8430437a97e263c85f968bddb.tar.xz mpd-9fb82f9687c10ee8430437a97e263c85f968bddb.zip |
DetachedSong: add method Update()
Don't create an intermediate Song instance when all we want is a
DetachedSong.
Diffstat (limited to '')
-rw-r--r-- | src/DetachedSong.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/DetachedSong.hxx b/src/DetachedSong.hxx index 2059d2367..a99cbb4c8 100644 --- a/src/DetachedSong.hxx +++ b/src/DetachedSong.hxx @@ -179,6 +179,13 @@ public: gcc_pure double GetDuration() const; + + /** + * Update the #tag and #mtime. + * + * @return true on success + */ + bool Update(); }; #endif |