From 38f52fb20f2324b726d8c5a4a6b5c31568c36029 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 28 Sep 2009 17:48:46 +0200 Subject: [PATCH] player_command: handle_player_command() returns bool --- src/player_command.c | 8 ++++---- src/player_command.h | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) 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 -- 2.30.2