From fed719197c7014151710c4aae9174990fd131d59 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 4 Jan 2009 19:09:34 +0100 Subject: song: allocate the result of song_get_url() --- src/decoder_api.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/decoder_api.h') diff --git a/src/decoder_api.h b/src/decoder_api.h index 88705651..4e24c7b0 100644 --- a/src/decoder_api.h +++ b/src/decoder_api.h @@ -108,7 +108,13 @@ void decoder_initialized(struct decoder * decoder, const struct audio_format *audio_format, bool seekable, float total_time); -const char *decoder_get_url(struct decoder * decoder, char * buffer); +/** + * Returns the URI of the current song in UTF-8 encoding. + * + * The return value is allocated on the heap, and must be freed by the + * caller. + */ +char *decoder_get_uri(struct decoder *decoder); enum decoder_command decoder_get_command(struct decoder * decoder); -- cgit v1.2.3