From: Jonathan Neuschäfer Date: Wed, 4 Jan 2012 17:50:28 +0000 (+0100) Subject: mpdclient: add G_GNUC_PURE to _is_connected()/_get_current_song() X-Git-Tag: release-0.20~10^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d51c0577848a93f1b07e99957e2a9bcc4a96b176;p=ncmpc.git mpdclient: add G_GNUC_PURE to _is_connected()/_get_current_song() --- diff --git a/src/mpdclient.h b/src/mpdclient.h index d46b8a1..3b02681 100644 --- a/src/mpdclient.h +++ b/src/mpdclient.h @@ -79,6 +79,7 @@ mpdclient_new(void); void mpdclient_free(struct mpdclient *c); +G_GNUC_PURE static inline bool mpdclient_is_connected(const struct mpdclient *c) { @@ -94,6 +95,7 @@ mpdclient_is_playing(const struct mpdclient *c) mpd_status_get_state(c->status) == MPD_STATE_PAUSE); } +G_GNUC_PURE static inline const struct mpd_song * mpdclient_get_current_song(const struct mpdclient *c) {