Files
mpd/src/playlist/PlaylistStream.hxx
Max Kellermann f53cd44c7a playlist/{Stream,Mapper,Any}: propagate exceptions, do not catch&log them
Let the caller handle all the exceptions.
2024-05-15 20:19:57 +02:00

35 lines
738 B
C++

// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project
#pragma once
#include "thread/Mutex.hxx"
#include <memory>
class SongEnumerator;
class Path;
/**
* Opens a playlist from a local file.
*
* Throws on error.
*
* @param path the path of the playlist file
* @return a playlist, or nullptr if the file is not supported
*/
std::unique_ptr<SongEnumerator>
playlist_open_path(Path path, Mutex &mutex);
/**
* Opens a playlist from a remote file.
*
* Throws on error.
*
* @param uri the absolute URI of the playlist file
* @return a playlist, or nullptr if the file is not supported
*/
[[gnu::nonnull]]
std::unique_ptr<SongEnumerator>
playlist_open_remote(const char *uri, Mutex &mutex);