diff options
author | Max Kellermann <max@duempel.org> | 2014-02-07 19:01:06 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-07 19:09:28 +0100 |
commit | ffd16b55a69a01b906805752acc11e26491138bc (patch) | |
tree | eae175525c3691e87c348bc107f903e61302cf69 /src/storage/plugins/SmbclientStorage.cxx | |
parent | d744c997d8a4370d56901c5bdf92d3cca0ef83bc (diff) | |
download | mpd-ffd16b55a69a01b906805752acc11e26491138bc.tar.gz mpd-ffd16b55a69a01b906805752acc11e26491138bc.tar.xz mpd-ffd16b55a69a01b906805752acc11e26491138bc.zip |
StoragePlugin: add method MapToRelativeUTF8()
Replaces map_to_relative_path() from Mapper.cxx.
Diffstat (limited to 'src/storage/plugins/SmbclientStorage.cxx')
-rw-r--r-- | src/storage/plugins/SmbclientStorage.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/storage/plugins/SmbclientStorage.cxx b/src/storage/plugins/SmbclientStorage.cxx index 8dafff082..6d61ab75e 100644 --- a/src/storage/plugins/SmbclientStorage.cxx +++ b/src/storage/plugins/SmbclientStorage.cxx @@ -69,6 +69,8 @@ public: Error &error) override; virtual std::string MapUTF8(const char *uri_utf8) const override; + + virtual const char *MapToRelativeUTF8(const char *uri_utf8) const override; }; std::string @@ -82,6 +84,12 @@ SmbclientStorage::MapUTF8(const char *uri_utf8) const return PathTraitsUTF8::Build(base.c_str(), uri_utf8); } +const char * +SmbclientStorage::MapToRelativeUTF8(const char *uri_utf8) const +{ + return PathTraitsUTF8::Relative(base.c_str(), uri_utf8); +} + static bool GetInfo(const char *path, FileInfo &info, Error &error) { |