summaryrefslogtreecommitdiffstats
path: root/apps/bookmark.c
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2004-01-26 17:05:21 +0000
committerHardeep Sidhu <dyp@pobox.com>2004-01-26 17:05:21 +0000
commit107ebc5ba950acee1108a5cb52f25be371b2ec8f (patch)
tree08a833f8f7a1242612cb2ef8cf97299048f46743 /apps/bookmark.c
parent1c7a88de787c612598ac47a59b99e00e9a2e3106 (diff)
downloadrockbox-107ebc5ba950acee1108a5cb52f25be371b2ec8f.tar.gz
rockbox-107ebc5ba950acee1108a5cb52f25be371b2ec8f.tar.bz2
rockbox-107ebc5ba950acee1108a5cb52f25be371b2ec8f.zip
Modified playlist handling to allow for multiple playlists to be edited at the same time. Added support in playlist viewer for viewing/editing playlists on disk (accessed via ON+PLAY->Playlist->View on a playlist). Added menu in playlist viewer for changing a few settings and saving playlist. Added File Options menu in playlist viewer ON+PLAY menu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4276 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/bookmark.c')
-rw-r--r--apps/bookmark.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c
index 893c128a15..9e093c0d1f 100644
--- a/apps/bookmark.c
+++ b/apps/bookmark.c
@@ -140,7 +140,7 @@ static bool bookmark_load_menu(void)
return false;
else
{
- char* name = playlist_get_name(global_temp_buffer,
+ char* name = playlist_get_name(NULL, global_temp_buffer,
sizeof(global_temp_buffer));
if (generate_bookmark_file_name(name,
global_bookmark_file_name,
@@ -306,7 +306,7 @@ static bool write_bookmark(bool create_bookmark_file)
/* writing the bookmark */
if (create_bookmark_file)
{
- char* name = playlist_get_name(global_temp_buffer,
+ char* name = playlist_get_name(NULL, global_temp_buffer,
sizeof(global_temp_buffer));
if (generate_bookmark_file_name(name,
global_bookmark_file_name,
@@ -428,12 +428,13 @@ static char* create_bookmark()
"%d;%d;%d;%d;%d;%d;%d;%s;%s",
resume_index,
id3->offset,
- playlist_get_seed(),
+ playlist_get_seed(NULL),
0,
id3->elapsed,
global_settings.repeat_mode,
global_settings.playlist_shuffle,
- playlist_get_name(global_temp_buffer,sizeof(global_temp_buffer)),
+ playlist_get_name(NULL, global_temp_buffer,
+ sizeof(global_temp_buffer)),
file+1);
/* checking to see if the bookmark is valid */
@@ -1090,7 +1091,7 @@ static bool system_check(void)
/* something bad happened while getting the queue information */
return false;
}
- else if (playlist_modified())
+ else if (playlist_modified(NULL))
{
/* can't bookmark while in the queue */
return false;