Code

mpdclient: export mpdclient_handle_error()
authorMax Kellermann <max@duempel.org>
Tue, 29 Sep 2009 18:57:29 +0000 (20:57 +0200)
committerMax Kellermann <max@duempel.org>
Tue, 29 Sep 2009 18:57:29 +0000 (20:57 +0200)
This function will allow callers to use libmpdclient2 directly.

src/mpdclient.c
src/mpdclient.h

index 6eb41448264c056ae38dfaa21de25d8807f0087d..e7024d298d1dea24c2f20fd6f177e4a220140f88 100644 (file)
@@ -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);
index 10fc226dfc76dbed2345dba73c57f87929ff2bf8..5d299bfc1be66514a7c13c331e67b5fd4d2d46b2 100644 (file)
@@ -26,6 +26,9 @@ struct mpdclient {
 
 /** functions ***************************************************************/
 
+gint
+mpdclient_handle_error(struct mpdclient *c);
+
 gint
 mpdclient_finish_command(struct mpdclient *c);