aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 13:35:01 +0200
committerMax Kellermann <max@duempel.org>2008-09-07 13:35:01 +0200
commit75aa8dad4ccf1bb942c327d78b0ddad821c4abaa (patch)
tree6667baf1bd77d3fbbb9771f198057c903c6138f1 /src/song.h
parent386c303121a8c53f11cc91c59bbe87f93a503b31 (diff)
downloadmpd-75aa8dad4ccf1bb942c327d78b0ddad821c4abaa.tar.gz
mpd-75aa8dad4ccf1bb942c327d78b0ddad821c4abaa.tar.xz
mpd-75aa8dad4ccf1bb942c327d78b0ddad821c4abaa.zip
song: moved code to song_print.c, song_save.c
Move everything which dumps song information (via tag_print.c) to a separate source file. song_print.c gets code which writes song data to the client; song_save.c is responsible for serializing songs from the tag cache.
Diffstat (limited to 'src/song.h')
-rw-r--r--src/song.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/song.h b/src/song.h
index 0f271aa83..0ea3ec72b 100644
--- a/src/song.h
+++ b/src/song.h
@@ -42,6 +42,8 @@ typedef struct _Song {
typedef List SongList;
+Song *newNullSong(void);
+
Song *newSong(const char *url, int songType, struct _Directory *parentDir);
void freeSong(Song *);
@@ -55,19 +57,8 @@ void freeSongList(SongList * list);
Song *addSongToList(SongList * list, const char *url, const char *utf8path,
int songType, struct _Directory *parentDir);
-int printSongInfo(int fd, Song * song);
-
-int printSongInfoFromList(int fd, SongList * list);
-
-void writeSongInfoFromList(FILE * fp, SongList * list);
-
-void readSongInfoIntoList(FILE * fp, SongList * list,
- struct _Directory *parent);
-
int updateSongInfo(Song * song);
-void printSongUrl(int fd, Song * song);
-
/*
* get_song_url - Returns a path of a song in UTF8-encoded form
* path_max_tmp is the argument that the URL is written to, this