From eb10be27d82153cc20cbf0f542880c25e0d8f272 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 29 Sep 2009 20:57:29 +0200 Subject: [PATCH] mpdclient: export mpdclient_handle_error() This function will allow callers to use libmpdclient2 directly. --- src/mpdclient.c | 2 +- src/mpdclient.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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); -- 2.30.2