Files
mpd/src/playlist/Length.hxx
jcorporation f801f299c9 New command playlistlength
Count the number of songs and their total playtime in the playlist.
2024-02-15 11:25:34 +01:00

25 lines
579 B
C++

// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project
#ifndef MPD_PLAYLIST__LENGTH_HXX
#define MPD_PLAYLIST__LENGTH_HXX
#include "client/Response.hxx"
class SongLoader;
struct Partition;
/**
* Count the number of songs and their total playtime (seconds) in the
* playlist.
*
* @param uri the URI of the playlist file in UTF-8 encoding
* @return true on success, false if the playlist does not exist
*/
bool
playlist_file_length(Response &r, Partition &partition,
const SongLoader &loader,
const LocatedUri &uri);
#endif