aboutsummaryrefslogtreecommitdiffstats
path: root/src/update.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 11:05:34 +0200
committerEric Wong <normalperson@yhbt.net>2008-10-11 19:21:47 -0700
commite6f87010949c1d659b27c5db5707e23230d3eaf0 (patch)
treea68ef0a95beae2e2ffaaf6b2925112801b3f1c04 /src/update.c
parentd24e17ebdd5eeb16c87b897a9ecb52a5704a52b3 (diff)
downloadmpd-e6f87010949c1d659b27c5db5707e23230d3eaf0.tar.gz
mpd-e6f87010949c1d659b27c5db5707e23230d3eaf0.tar.xz
mpd-e6f87010949c1d659b27c5db5707e23230d3eaf0.zip
song: removed CamelCase
CamelCase is ugly... rename all functions.
Diffstat (limited to 'src/update.c')
-rw-r--r--src/update.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/update.c b/src/update.c
index c40f25694..e7a49e56e 100644
--- a/src/update.c
+++ b/src/update.c
@@ -75,7 +75,7 @@ static void delete_song(struct directory *dir, struct mpd_song *del)
cond_leave(&delete_cond);
/* finally, all possible references gone, free it */
- freeJustSong(del);
+ song_free(del);
}
struct delete_data {
@@ -89,7 +89,7 @@ static int delete_song_if_removed(struct mpd_song *song, void *_data)
{
struct delete_data *data = _data;
- data->tmp = get_song_url(data->tmp, song);
+ data->tmp = song_get_url(song, data->tmp);
assert(data->tmp);
if (!isFile(data->tmp, NULL)) {
@@ -226,7 +226,7 @@ updateInDirectory(struct directory *directory, const char *name)
return UPDATE_RETURN_UPDATED;
} else if (st.st_mtime != song->mtime) {
LOG("updating %s\n", name);
- if (updateSongInfo(song) < 0)
+ if (song_file_update(song) < 0)
delete_song(directory, song);
return UPDATE_RETURN_UPDATED;
}
@@ -393,7 +393,7 @@ static enum update_return updatePath(const char *utf8path)
/* don't return, path maybe a song now */
}
} else if ((song = getSongFromDB(utf8path))) {
- parentDirectory = song->parentDir;
+ parentDirectory = song->parent;
if (!parentDirectory->stat
&& statDirectory(parentDirectory) < 0) {
return UPDATE_RETURN_NOUPDATE;
@@ -402,10 +402,10 @@ static enum update_return updatePath(const char *utf8path)
else if (!inodeFoundInParent(parentDirectory->parent,
parentDirectory->inode,
parentDirectory->device) &&
- isMusic(get_song_url(path_max_tmp, song), &mtime, 0)) {
+ isMusic(song_get_url(song, path_max_tmp), &mtime, 0)) {
if (song->mtime == mtime)
return UPDATE_RETURN_NOUPDATE;
- else if (updateSongInfo(song) == 0)
+ else if (song_file_update(song) == 0)
return UPDATE_RETURN_UPDATED;
else {
delete_song(parentDirectory, song);
@@ -503,7 +503,7 @@ void reap_update_task(void)
cond_enter(&delete_cond);
if (delete) {
char tmp[MPD_PATH_MAX];
- LOG("removing: %s\n", get_song_url(tmp, delete));
+ LOG("removing: %s\n", song_get_url(delete, tmp));
deleteASongFromPlaylist(delete);
delete = NULL;
cond_signal(&delete_cond);