aboutsummaryrefslogtreecommitdiffstats
path: root/src/DetachedSong.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-10-20 12:10:42 +0200
committerMax Kellermann <max@duempel.org>2015-10-20 12:10:42 +0200
commitfc2154ee9278ba7e9ccdc82a210806c1d1279150 (patch)
treebe8571a609e5926c93e0ccd65618332ba00945e4 /src/DetachedSong.hxx
parent76f85e6f7bea6f286389caf96835f2cd61d0961b (diff)
downloadmpd-fc2154ee9278ba7e9ccdc82a210806c1d1279150.tar.gz
mpd-fc2154ee9278ba7e9ccdc82a210806c1d1279150.tar.xz
mpd-fc2154ee9278ba7e9ccdc82a210806c1d1279150.zip
DetachedSong: move code from Update() to LoadFile()
Avoid duplicate AllocatedPath::FromUTF8() invocations in two callers.
Diffstat (limited to '')
-rw-r--r--src/DetachedSong.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/DetachedSong.hxx b/src/DetachedSong.hxx
index c3d9f6289..844283dcf 100644
--- a/src/DetachedSong.hxx
+++ b/src/DetachedSong.hxx
@@ -32,6 +32,7 @@
struct LightSong;
class Storage;
+class Path;
class DetachedSong {
friend DetachedSong DatabaseDetachSong(const Storage &db,
@@ -220,6 +221,11 @@ public:
* @return true on success
*/
bool Update();
+
+ /**
+ * Load #tag and #mtime from a local file.
+ */
+ bool LoadFile(Path path);
};
#endif