diff options
| author | Bertrik Sikken <bertrik@sikken.nl> | 2008-04-20 11:19:50 +0000 |
|---|---|---|
| committer | Bertrik Sikken <bertrik@sikken.nl> | 2008-04-20 11:19:50 +0000 |
| commit | 3e98eb2de0d533e401ad07ed5b0e13cd973a5af3 (patch) | |
| tree | 41614a1c6950bdf2496d65b5f620d9cafbd6d46b | |
| parent | 2521bf5d2675ddd8c07637d021198134a7e12445 (diff) | |
| download | rockbox-3e98eb2de0d533e401ad07ed5b0e13cd973a5af3.zip rockbox-3e98eb2de0d533e401ad07ed5b0e13cd973a5af3.tar.gz rockbox-3e98eb2de0d533e401ad07ed5b0e13cd973a5af3.tar.bz2 rockbox-3e98eb2de0d533e401ad07ed5b0e13cd973a5af3.tar.xz | |
Renamed remove_all_tracks to playlist_remove_all_tracks to make it consistent with the naming of the other functions in playlist.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17186 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/playlist.c | 8 | ||||
| -rw-r--r-- | apps/playlist.h | 2 | ||||
| -rw-r--r-- | apps/tagtree.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 5f2062f..416f981 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -661,7 +661,7 @@ static int create_and_play_dir(int direction, bool play_last) * Removes all tracks, from the playlist, leaving the presently playing * track queued. */ -int remove_all_tracks(struct playlist_info *playlist) +int playlist_remove_all_tracks(struct playlist_info *playlist) { int result; @@ -775,7 +775,7 @@ static int add_track_to_playlist(struct playlist_info* playlist, break; } case PLAYLIST_REPLACE: - if (remove_all_tracks(playlist) < 0) + if (playlist_remove_all_tracks(playlist) < 0) return -1; position = insert_position = playlist->index + 1; @@ -2905,7 +2905,7 @@ int playlist_insert_directory(struct playlist_info* playlist, if (position == PLAYLIST_REPLACE) { - if (remove_all_tracks(playlist) == 0) + if (playlist_remove_all_tracks(playlist) == 0) position = PLAYLIST_INSERT_LAST; else return -1; @@ -2995,7 +2995,7 @@ int playlist_insert_playlist(struct playlist_info* playlist, char *filename, if (position == PLAYLIST_REPLACE) { - if (remove_all_tracks(playlist) == 0) + if (playlist_remove_all_tracks(playlist) == 0) position = PLAYLIST_INSERT_LAST; else return -1; } diff --git a/apps/playlist.h b/apps/playlist.h index af9a095..006ae59 100644 --- a/apps/playlist.h +++ b/apps/playlist.h @@ -164,6 +164,6 @@ int playlist_save(struct playlist_info* playlist, char *filename); int playlist_directory_tracksearch(const char* dirname, bool recurse, int (*callback)(char*, void*), void* context); -int remove_all_tracks(struct playlist_info *playlist); +int playlist_remove_all_tracks(struct playlist_info *playlist); #endif /* __PLAYLIST_H__ */ diff --git a/apps/tagtree.c b/apps/tagtree.c index faffb00..50921d0 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c @@ -1585,7 +1585,7 @@ static bool insert_all_playlist(struct tree_context *c, int position, bool queue if (position == PLAYLIST_REPLACE) { - if (remove_all_tracks(NULL) == 0) + if (playlist_remove_all_tracks(NULL) == 0) position = PLAYLIST_INSERT_LAST; else return -1; } |