From: Jonathan Neuschäfer Date: Mon, 31 Oct 2011 00:23:15 +0000 (+0100) Subject: mpdclient: export mpdclient_finish_command X-Git-Tag: release-0.20~53 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=473cfa9b9feef4348873865fd9503690b3207c0c;p=ncmpc.git mpdclient: export mpdclient_finish_command (and include mpdclient.h in mpdclient.c, so it can be used there) --- 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);