2024-02-08 22:54:24 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// Copyright The Music Player Daemon Project
|
|
|
|
|
2024-05-15 20:12:01 +02:00
|
|
|
#pragma once
|
2024-02-08 22:54:24 +01:00
|
|
|
|
|
|
|
#include "client/Response.hxx"
|
|
|
|
|
|
|
|
class SongLoader;
|
|
|
|
struct Partition;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Count the number of songs and their total playtime (seconds) in the
|
|
|
|
* playlist.
|
|
|
|
*
|
2024-05-15 20:12:01 +02:00
|
|
|
* Throws on error.
|
|
|
|
*
|
2024-02-08 22:54:24 +01:00
|
|
|
* @param uri the URI of the playlist file in UTF-8 encoding
|
|
|
|
* @return true on success, false if the playlist does not exist
|
|
|
|
*/
|
2024-05-15 20:12:01 +02:00
|
|
|
void
|
2024-02-08 22:54:24 +01:00
|
|
|
playlist_file_length(Response &r, Partition &partition,
|
2024-05-15 20:12:01 +02:00
|
|
|
const SongLoader &loader,
|
|
|
|
const LocatedUri &uri);
|