From 3db333b5a46f8d147043afc4d400d18851d3606d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:16 +0200 Subject: player: no "fd" and no return value Most player*() functions do not actually use the file descriptor, and always return 0 (success). Eliminate them to get a leaner interface. --- src/player.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/player.h') diff --git a/src/player.h b/src/player.h index 08405032d..2b1e6d992 100644 --- a/src/player.h +++ b/src/player.h @@ -85,13 +85,13 @@ typedef struct _PlayerControl { void player_command_finished(void); -int playerPlay(int fd, Song * song); +void playerPlay(Song * song); -int playerSetPause(int fd, int pause_flag); +void playerSetPause(int pause_flag); -int playerPause(int fd); +void playerPause(void); -int playerStop(int fd); +void playerStop(void); void playerKill(void); @@ -109,7 +109,7 @@ char *getPlayerErrorStr(void); int getPlayerError(void); -int playerWait(int fd); +void playerWait(void); int queueSong(Song * song); -- cgit v1.2.3