From 473cfa9b9feef4348873865fd9503690b3207c0c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonathan=20Neusch=C3=A4fer?= Date: Mon, 31 Oct 2011 01:23:15 +0100 Subject: [PATCH] mpdclient: export mpdclient_finish_command (and include mpdclient.h in mpdclient.c, so it can be used there) --- src/mpdclient.c | 7 ------- src/mpdclient.h | 8 ++++++++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/mpdclient.c b/src/mpdclient.c index 34d26df..ce1eed5 100644 --- a/src/mpdclient.c +++ b/src/mpdclient.c @@ -83,13 +83,6 @@ mpdclient_handle_error(struct mpdclient *c) return false; } -static bool -mpdclient_finish_command(struct mpdclient *c) -{ - return mpd_response_finish(c->connection) - ? true : mpdclient_handle_error(c); -} - struct mpdclient * mpdclient_new(void) { diff --git a/src/mpdclient.h b/src/mpdclient.h index 7cdf7f5..d46b8a1 100644 --- a/src/mpdclient.h +++ b/src/mpdclient.h @@ -2,6 +2,7 @@ #define MPDCLIENT_H #include "playlist.h" +#include "mpdclient.h" #include @@ -66,6 +67,13 @@ enum { bool mpdclient_handle_error(struct mpdclient *c); +static inline bool +mpdclient_finish_command(struct mpdclient *c) +{ + return mpd_response_finish(c->connection) + ? true : mpdclient_handle_error(c); +} + struct mpdclient * mpdclient_new(void); -- 2.11.4.GIT