From: Max Kellermann Date: Tue, 29 Sep 2009 18:57:29 +0000 (+0200) Subject: mpdclient: export mpdclient_handle_error() X-Git-Tag: release-0.16~305 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eb10be27d82153cc20cbf0f542880c25e0d8f272;p=ncmpc.git mpdclient: export mpdclient_handle_error() This function will allow callers to use libmpdclient2 directly. --- diff --git a/src/mpdclient.c b/src/mpdclient.c index 6eb4144..e7024d2 100644 --- a/src/mpdclient.c +++ b/src/mpdclient.c @@ -103,7 +103,7 @@ compare_filelistentry_format(gconstpointer filelist_entry1, /*** mpdclient functions ****************************************************/ /****************************************************************************/ -static gint +gint mpdclient_handle_error(struct mpdclient *c) { enum mpd_error error = mpd_connection_get_error(c->connection); diff --git a/src/mpdclient.h b/src/mpdclient.h index 10fc226..5d299bf 100644 --- a/src/mpdclient.h +++ b/src/mpdclient.h @@ -26,6 +26,9 @@ struct mpdclient { /** functions ***************************************************************/ +gint +mpdclient_handle_error(struct mpdclient *c); + gint mpdclient_finish_command(struct mpdclient *c);