From: Max Kellermann Date: Mon, 28 Sep 2009 15:48:46 +0000 (+0200) Subject: player_command: handle_player_command() returns bool X-Git-Tag: release-0.16~322 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=38f52fb20f2324b726d8c5a4a6b5c31568c36029;p=ncmpc.git player_command: handle_player_command() returns bool --- diff --git a/src/player_command.c b/src/player_command.c index 2996795..478d090 100644 --- a/src/player_command.c +++ b/src/player_command.c @@ -30,11 +30,11 @@ int seek_id = -1; int seek_target_time = 0; -int +bool handle_player_command(struct mpdclient *c, command_t cmd) { if (c->connection == NULL || c->status == NULL) - return 0; + return false; switch(cmd) { /* @@ -126,8 +126,8 @@ handle_player_command(struct mpdclient *c, command_t cmd) break; default: - return 0; + return false; } - return 1; + return true; } diff --git a/src/player_command.h b/src/player_command.h index 70d07fd..d854515 100644 --- a/src/player_command.h +++ b/src/player_command.h @@ -22,12 +22,14 @@ #include "command.h" +#include + struct mpdclient; extern int seek_id; extern int seek_target_time; -int +bool handle_player_command(struct mpdclient *c, command_t cmd); #endif