aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-04 19:09:34 +0100
committerMax Kellermann <max@duempel.org>2009-01-04 19:09:34 +0100
commitfed719197c7014151710c4aae9174990fd131d59 (patch)
tree0fb6d6f69aa60ecdf9eb89286f8354316fffcc92 /src/song.h
parentea8ae68e6f1a686fd96530fdaf7b428e33f58ec4 (diff)
downloadmpd-fed719197c7014151710c4aae9174990fd131d59.tar.gz
mpd-fed719197c7014151710c4aae9174990fd131d59.tar.xz
mpd-fed719197c7014151710c4aae9174990fd131d59.zip
song: allocate the result of song_get_url()
Diffstat (limited to 'src/song.h')
-rw-r--r--src/song.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/song.h b/src/song.h
index 7f40b7e9f..a4c72cf67 100644
--- a/src/song.h
+++ b/src/song.h
@@ -61,14 +61,15 @@ song_file_update(struct song *song);
bool
song_file_update_inarchive(struct song *song);
-/*
- * song_get_url - Returns a path of a song in UTF8-encoded form
- * path_max_tmp is the argument that the URL is written to, this
- * buffer is assumed to be MPD_PATH_MAX or greater (including
- * terminating '\0').
+/**
+ * Returns the URI of the song in UTF-8 encoding, including its
+ * location within the music directory.
+ *
+ * The return value is allocated on the heap, and must be freed by the
+ * caller.
*/
char *
-song_get_url(const struct song *song, char *path_max_tmp);
+song_get_uri(const struct song *song);
static inline bool
song_in_database(const struct song *song)