Code

screen_keydef: document delete_key
[ncmpc.git] / src / mpdclient.h
index 7cdf7f5da121021f1726fe5a703e3489a944bbcf..d46b8a1c71460a45162a94cfdbd9599940b73858 100644 (file)
@@ -2,6 +2,7 @@
 #define MPDCLIENT_H
 
 #include "playlist.h"
+#include "mpdclient.h"
 
 #include <mpd/client.h>
 
@@ -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);