aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-11-11 02:36:25 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-11-11 02:36:25 +0000
commit4ec3df033954d01663087011efecfca37749f965 (patch)
treeecf4d199b1c4ea3cbbb78c0904a3ba9a4e00efc9 /src/song.h
parent03f02badf02adba317f6358bc0e1ebf669b48204 (diff)
downloadmpd-4ec3df033954d01663087011efecfca37749f965.tar.gz
mpd-4ec3df033954d01663087011efecfca37749f965.tar.xz
mpd-4ec3df033954d01663087011efecfca37749f965.zip
implement saved memory by not storing full path
git-svn-id: https://svn.musicpd.org/mpd/trunk@2601 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/song.h')
-rw-r--r--src/song.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/song.h b/src/song.h
index 45f9e7923..81e5b5504 100644
--- a/src/song.h
+++ b/src/song.h
@@ -45,7 +45,7 @@ typedef List SongList;
Song * newNullSong();
-Song * newSong(char * utf8url, int songType, struct _Directory * parentDir);
+Song * newSong(char * url, int songType, struct _Directory * parentDir);
void freeSong(Song *);
@@ -55,7 +55,7 @@ SongList * newSongList();
void freeSongList(SongList * list);
-Song * addSongToList(SongList * list, char * key, char * utf8file,
+Song * addSongToList(SongList * list, char * url, char * utf8path,
int songType, struct _Directory * parentDir);
int printSongInfo(FILE * fp, Song * song);
@@ -64,7 +64,8 @@ int printSongInfoFromList(FILE * fp, SongList * list);
void writeSongInfoFromList(FILE * fp, SongList * list);
-void readSongInfoIntoList(FILE * fp, SongList * list);
+void readSongInfoIntoList(FILE * fp, SongList * list,
+ struct _Directory * parent);
int updateSongInfo(Song * song);
@@ -72,4 +73,6 @@ Song * songDup(Song * song);
void printSongUrl(FILE * fp, Song * song);
+char * getSongUrl(Song * song);
+
#endif