summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 87e251e)
raw | patch | inline | side by side (parent: 87e251e)
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Mon, 31 Oct 2011 00:23:15 +0000 (01:23 +0100) | ||
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Mon, 14 Nov 2011 21:29:22 +0000 (22:29 +0100) |
(and include mpdclient.h in mpdclient.c, so it can be used there)
src/mpdclient.c | patch | blob | history | |
src/mpdclient.h | patch | blob | history |
diff --git a/src/mpdclient.c b/src/mpdclient.c
index 34d26df69e30a81965f3df091af98aad267a48cc..ce1eed5972de92bda9ef4db76a0aa7682d60dc92 100644 (file)
--- a/src/mpdclient.c
+++ b/src/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 7cdf7f5da121021f1726fe5a703e3489a944bbcf..d46b8a1c71460a45162a94cfdbd9599940b73858 100644 (file)
--- a/src/mpdclient.h
+++ b/src/mpdclient.h
#define MPDCLIENT_H
#include "playlist.h"
+#include "mpdclient.h"
#include <mpd/client.h>
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);