aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_control.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-05-06 18:35:22 +0200
committerMax Kellermann <max@duempel.org>2009-05-06 18:35:22 +0200
commit3083df5a5f0dc423d4b283917737b99e308081e9 (patch)
treed26d6701646726c83f3aeaf5288cef123bf70159 /src/player_control.c
parent0935d85c69eaa11d5f8daa8056fdf0f845871cc1 (diff)
downloadmpd-3083df5a5f0dc423d4b283917737b99e308081e9.tar.gz
mpd-3083df5a5f0dc423d4b283917737b99e308081e9.tar.xz
mpd-3083df5a5f0dc423d4b283917737b99e308081e9.zip
player_control: renamed playerSeek(), return bool
Renamed playerSeek() to pc_seek() to get rid of CamelCase. Convert the return value to bool.
Diffstat (limited to 'src/player_control.c')
-rw-r--r--src/player_control.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/player_control.c b/src/player_control.c
index df4f4bf61..2754c3432 100644
--- a/src/player_control.c
+++ b/src/player_control.c
@@ -220,13 +220,13 @@ queueSong(struct song *song)
player_command(PLAYER_COMMAND_QUEUE);
}
-int
-playerSeek(struct song *song, float seek_time)
+bool
+pc_seek(struct song *song, float seek_time)
{
assert(song != NULL);
if (pc.state == PLAYER_STATE_STOP)
- return -1;
+ return false;
pc.next_song = song;
@@ -237,7 +237,7 @@ playerSeek(struct song *song, float seek_time)
idle_add(IDLE_PLAYER);
}
- return 0;
+ return true;
}
float getPlayerCrossFade(void)