storage/smbclient: add StoragePlugin.prefixes

Should have been part of commit
ef24cfa523

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1279
This commit is contained in:
Max Kellermann 2021-10-15 10:23:58 +02:00
parent 466b5cb08d
commit 85611aa456
1 changed files with 3 additions and 3 deletions

View File

@ -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,
};