Commit 85611aa4 authored by Max Kellermann's avatar Max Kellermann

storage/smbclient: add StoragePlugin.prefixes

Should have been part of commit ef24cfa5 Closes https://github.com/MusicPlayerDaemon/MPD/issues/1279
parent 466b5cb0
......@@ -186,15 +186,15 @@ SmbclientDirectoryReader::GetInfo([[maybe_unused]] bool follow)
static std::unique_ptr<Storage>
CreateSmbclientStorageURI([[maybe_unused]] EventLoop &event_loop, const char *base)
{
if (!StringStartsWithCaseASCII(base, "smb://"))
return nullptr;
SmbclientInit();
return std::make_unique<SmbclientStorage>(base);
}
static constexpr const char *smbclient_prefixes[] = { "smb://", nullptr };
const StoragePlugin smbclient_storage_plugin = {
"smbclient",
smbclient_prefixes,
CreateSmbclientStorageURI,
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment