summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-05-31 14:33:33 +0000
committerThomas Martitz <kugel@rockbox.org>2009-05-31 14:33:33 +0000
commitf0aa8ba95d8171ebe73919078da91834605dd561 (patch)
treecfa1626812f2179103a8024918a18fb9496e9408
parentf31e86338aecfdb6fbba4170ea1ba82d0738c7c1 (diff)
downloadrockbox-f0aa8ba95d8171ebe73919078da91834605dd561.tar.gz
rockbox-f0aa8ba95d8171ebe73919078da91834605dd561.tar.bz2
rockbox-f0aa8ba95d8171ebe73919078da91834605dd561.zip
playlist start can only have 1 return value (0), so make it return nothing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21142 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playlist.c4
-rw-r--r--apps/playlist.h2
-rw-r--r--apps/plugin.h2
3 files changed, 3 insertions, 5 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index e5babd4254..58e0042646 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -2405,7 +2405,7 @@ int playlist_shuffle(int random_seed, int start_index)
}
/* start playing current playlist at specified index/offset */
-int playlist_start(int start_index, int offset)
+void playlist_start(int start_index, int offset)
{
struct playlist_info* playlist = &current_playlist;
@@ -2423,8 +2423,6 @@ int playlist_start(int start_index, int offset)
playlist->started = true;
sync_control(playlist, false);
audio_play(offset);
-
- return 0;
}
/* Returns false if 'steps' is out of bounds, else true */
diff --git a/apps/playlist.h b/apps/playlist.h
index df3bd6221a..4f7b9cff3a 100644
--- a/apps/playlist.h
+++ b/apps/playlist.h
@@ -122,7 +122,7 @@ int playlist_create(const char *dir, const char *file);
int playlist_resume(void);
int playlist_add(const char *filename);
int playlist_shuffle(int random_seed, int start_index);
-int playlist_start(int start_index, int offset);
+void playlist_start(int start_index, int offset);
bool playlist_check(int steps);
char *playlist_peek(int steps);
int playlist_next(int steps);
diff --git a/apps/plugin.h b/apps/plugin.h
index 56d3f42d1b..3346a76e43 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -586,7 +586,7 @@ struct plugin_api {
/* playback control */
int (*playlist_amount)(void);
int (*playlist_resume)(void);
- int (*playlist_start)(int start_index, int offset);
+ void (*playlist_start)(int start_index, int offset);
void (*audio_play)(long offset);
void (*audio_stop)(void);
void (*audio_pause)(void);