diff --git a/src/mpdclient.h b/src/mpdclient.h
index c2aa377d9db8b80d2f8d18150a397e0a4c0076f7..9314f7ac33fb1f22ea1068417d0c72b8d7900fb8 100644 (file)
--- a/src/mpdclient.h
+++ b/src/mpdclient.h
#define MPDCLIENT_H
#include "playlist.h"
+#include "Compiler.h"
#include <mpd/client.h>
| MPD_IDLE_OUTPUT
| MPD_IDLE_OPTIONS
| MPD_IDLE_UPDATE
-#if LIBMPDCLIENT_CHECK_VERSION(2,5,0)
| MPD_IDLE_STICKER
| MPD_IDLE_SUBSCRIPTION
| MPD_IDLE_MESSAGE
-#endif
};
/** functions ***************************************************************/
void mpdclient_free(struct mpdclient *c);
-G_GNUC_PURE
+gcc_pure
static inline bool
mpdclient_is_connected(const struct mpdclient *c)
{
return c->connection != NULL;
}
-G_GNUC_PURE
+gcc_pure
static inline bool
mpdclient_is_playing(const struct mpdclient *c)
{
mpd_status_get_state(c->status) == MPD_STATE_PAUSE);
}
-G_GNUC_PURE
+gcc_pure
static inline const struct mpd_song *
mpdclient_get_current_song(const struct mpdclient *c)
{
void
mpdclient_put_connection(struct mpdclient *c);
-/**
- * To be implemented by the application: mpdclient.c calls this to
- * display an error message.
- */
-void
-mpdclient_ui_error(const char *message);
-
/*** MPD Commands **********************************************************/
bool
bool
mpdclient_cmd_move(struct mpdclient *c, unsigned dest, unsigned src);
-#if LIBMPDCLIENT_CHECK_VERSION(2,5,0)
bool
mpdclient_cmd_subscribe(struct mpdclient *c, const char *channel);
struct mpd_message *
mpdclient_recv_message(struct mpdclient *c);
-#endif
/*** playlist functions **************************************************/
bool
mpdclient_filelist_add_all(struct mpdclient *c, struct filelist *fl);
-/* sort by list-format */
-gint compare_filelistentry_format(gconstpointer filelist_entry1, gconstpointer filelist_entry2);
-
#endif