blob: 7825982fd6774acc7daf21b1e814cdf7eb7c802a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project
#ifndef MPC_SONG_FORMAT_H
#define MPC_SONG_FORMAT_H
#include "Compiler.h"
struct mpd_song;
/**
* Pretty-print song metadata into a string using the given format
* specification.
*
* @param song the song object
* @param format the format string
* @return the resulting string to be freed by free(); NULL if
* no format string group produced any output
*/
gcc_malloc
char *
format_song(const struct mpd_song *song,
const char *format);
#endif
|