You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
565 B
C++
28 lines
565 B
C++
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
// Copyright The Music Player Daemon Project
|
|
|
|
#pragma once
|
|
|
|
#include "db/Features.hxx" // for ENABLE_DATABASE
|
|
#include "thread/Mutex.hxx"
|
|
|
|
#include <memory>
|
|
|
|
class SongEnumerator;
|
|
class Storage;
|
|
|
|
/**
|
|
* Opens a playlist from an URI relative to the playlist or music
|
|
* directory.
|
|
*
|
|
* Throws on error.
|
|
*
|
|
* @return a playlist, or nullptr if the file is not supported
|
|
*/
|
|
std::unique_ptr<SongEnumerator>
|
|
playlist_mapper_open(const char *uri,
|
|
#ifdef ENABLE_DATABASE
|
|
Storage *storage,
|
|
#endif
|
|
Mutex &mutex);
|