aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-29 09:38:21 +0200
committerMax Kellermann <max@duempel.org>2008-08-29 09:38:21 +0200
commit91502cd71ea92716729109677c6d8e57c42e63ae (patch)
tree14a8f8e554add64b4af22561446bae203195b34c /src/song.c
parentd0556dc9839627f899939e9419181a4ad9b2053d (diff)
downloadmpd-91502cd71ea92716729109677c6d8e57c42e63ae.tar.gz
mpd-91502cd71ea92716729109677c6d8e57c42e63ae.tar.xz
mpd-91502cd71ea92716729109677c6d8e57c42e63ae.zip
tag: renamed functions, no CamelCase
Diffstat (limited to '')
-rw-r--r--src/song.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/song.c b/src/song.c
index 718c358e8..c34fab830 100644
--- a/src/song.c
+++ b/src/song.c
@@ -93,7 +93,7 @@ void freeJustSong(Song * song)
{
free(song->url);
if (song->tag)
- freeMpdTag(song->tag);
+ tag_free(song->tag);
free(song);
}
@@ -148,7 +148,7 @@ int printSongInfo(int fd, Song * song)
printSongUrl(fd, song);
if (song->tag)
- printMpdTag(fd, song->tag);
+ tag_print(fd, song->tag);
return 0;
}
@@ -201,7 +201,7 @@ static void insertSongIntoList(SongList * list, ListNode ** nextSongNode,
} else if (cmpRet == 0) {
Song *tempSong = (Song *) ((*nextSongNode)->data);
if (tempSong->mtime != song->mtime) {
- freeMpdTag(tempSong->tag);
+ tag_free(tempSong->tag);
tempSong->tag = song->tag;
tempSong->mtime = song->mtime;
song->tag = NULL;
@@ -258,14 +258,14 @@ void readSongInfoIntoList(FILE * fp, SongList * list, Directory * parentDir)
*/
} else if (matchesAnMpdTagItemKey(buffer, &itemType)) {
if (!song->tag)
- song->tag = newMpdTag();
- addItemToMpdTag(song->tag, itemType,
- &(buffer
- [strlen(mpdTagItemKeys[itemType]) +
- 2]));
+ song->tag = tag_new();
+ tag_add_item(song->tag, itemType,
+ &(buffer
+ [strlen(mpdTagItemKeys[itemType]) +
+ 2]));
} else if (0 == strncmp(SONG_TIME, buffer, strlen(SONG_TIME))) {
if (!song->tag)
- song->tag = newMpdTag();
+ song->tag = tag_new();
song->tag->time = atoi(&(buffer[strlen(SONG_TIME)]));
} else if (0 == strncmp(SONG_MTIME, buffer, strlen(SONG_MTIME))) {
song->mtime = atoi(&(buffer[strlen(SONG_MTIME)]));
@@ -296,7 +296,7 @@ int updateSongInfo(Song * song)
rmp2amp_r(abs_path, abs_path);
if (song->tag)
- freeMpdTag(song->tag);
+ tag_free(song->tag);
song->tag = NULL;