diff options
author | Courtney Cavin <ccavin@gmail.com> | 2009-07-28 18:07:01 -0400 |
---|---|---|
committer | Courtney Cavin <ccavin@gmail.com> | 2009-07-28 18:07:01 -0400 |
commit | 7f865f722c55dc7a2a27c7869030accc8ab9beb2 (patch) | |
tree | 688db79eb5c049c62f20fffbd7b3f5f035e24192 /src/playlist_state.c | |
parent | 614a01184577eda5f24517bec9609f0ea6d7e97b (diff) | |
download | mpd-7f865f722c55dc7a2a27c7869030accc8ab9beb2.tar.gz mpd-7f865f722c55dc7a2a27c7869030accc8ab9beb2.tar.xz mpd-7f865f722c55dc7a2a27c7869030accc8ab9beb2.zip |
playlist: CamelCaseIsBad
Renamed all playlist functions to non-CamelCase.
Diffstat (limited to 'src/playlist_state.c')
-rw-r--r-- | src/playlist_state.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/playlist_state.c b/src/playlist_state.c index cbf77813e..f288a5738 100644 --- a/src/playlist_state.c +++ b/src/playlist_state.c @@ -144,23 +144,23 @@ playlist_state_restore(const char *line, FILE *fp, struct playlist *playlist) if (strcmp (&(buffer[strlen(PLAYLIST_STATE_FILE_REPEAT)]), "1") == 0) { - setPlaylistRepeatStatus(playlist, true); + playlist_set_repeat(playlist, true); } else - setPlaylistRepeatStatus(playlist, false); + playlist_set_repeat(playlist, false); } else if (g_str_has_prefix(buffer, PLAYLIST_STATE_FILE_SINGLE)) { if (strcmp (&(buffer[strlen(PLAYLIST_STATE_FILE_SINGLE)]), "1") == 0) { - setPlaylistSingleStatus(playlist, true); + playlist_set_single(playlist, true); } else - setPlaylistSingleStatus(playlist, false); + playlist_set_single(playlist, false); } else if (g_str_has_prefix(buffer, PLAYLIST_STATE_FILE_CONSUME)) { if (strcmp (&(buffer[strlen(PLAYLIST_STATE_FILE_CONSUME)]), "1") == 0) { - setPlaylistConsumeStatus(playlist, true); + playlist_set_consume(playlist, true); } else - setPlaylistConsumeStatus(playlist, false); + playlist_set_consume(playlist, false); } else if (g_str_has_prefix(buffer, PLAYLIST_STATE_FILE_CROSSFADE)) { setPlayerCrossFade(atoi (& @@ -181,7 +181,7 @@ playlist_state_restore(const char *line, FILE *fp, struct playlist *playlist) } } - setPlaylistRandomStatus(playlist, random_mode); + playlist_set_random(playlist, random_mode); if (!queue_is_empty(&playlist->queue)) { if (!queue_valid_position(&playlist->queue, current)) @@ -190,9 +190,9 @@ playlist_state_restore(const char *line, FILE *fp, struct playlist *playlist) if (state == PLAYER_STATE_STOP /* && config_option */) playlist->current = current; else if (seek_time == 0) - playPlaylist(playlist, current); + playlist_play(playlist, current); else - seekSongInPlaylist(playlist, current, seek_time); + playlist_seek_song(playlist, current, seek_time); if (state == PLAYER_STATE_PAUSE) playerPause(); |