6 #include "util/Compiler.h" 8 #include <mpd/client.h> 12 struct AsyncMpdConnect;
18 #ifdef ENABLE_ASYNC_CONNECT 22 struct mpd_settings *settings;
31 struct mpd_settings *settings2;
46 #ifdef ENABLE_ASYNC_CONNECT 47 AsyncMpdConnect *async_connect =
nullptr;
59 const struct mpd_song *
song =
nullptr;
80 enum mpd_state
state = MPD_STATE_UNKNOWN;
82 #if defined(ENABLE_ASYNC_CONNECT) && !defined(_WIN32) 103 unsigned _timeout_ms,
const char *_password);
108 #ifdef ENABLE_ASYNC_CONNECT 109 mpd_settings_free(settings);
112 if (settings2 !=
nullptr)
113 mpd_settings_free(settings2);
138 #ifdef ENABLE_ASYNC_CONNECT 139 && async_connect ==
nullptr 167 bool UpdateQueueChanges();
176 | MPD_IDLE_STORED_PLAYLIST
184 | MPD_IDLE_SUBSCRIPTION
const char * host
Definition: mpdclient.hxx:35
bool FinishCommand()
Definition: mpdclient.hxx:159
bool mpdclient_cmd_clear(struct mpdclient *c)
gcc_pure bool IsDead() const
Definition: mpdclient.hxx:136
bool playing_or_paused
Definition: mpdclient.hxx:100
Definition: mpdclient.hxx:175
std::string GetSettingsName() const
bool idle
Definition: mpdclient.hxx:90
bool playing
Definition: mpdclient.hxx:95
~mpdclient()
Definition: mpdclient.hxx:105
unsigned enter_idle_source_id
Definition: mpdclient.hxx:65
MpdQueue playlist
Definition: mpdclient.hxx:44
struct mpd_connection * GetConnection()
gcc_pure const struct mpd_song * GetCurrentSong() const
Definition: mpdclient.hxx:145
bool mpdclient_cmd_add_path(struct mpdclient *c, const char *path)
bool mpdclient_cmd_crop(struct mpdclient *c)
bool mpdclient_cmd_add(struct mpdclient *c, const struct mpd_song *song)
unsigned connection_id
Definition: mpdclient.hxx:71
MpdIdleSource * source
Definition: mpdclient.hxx:56
unsigned events
Definition: mpdclient.hxx:78
mpdclient(const char *host, unsigned port, unsigned _timeout_ms, const char *_password)
Definition: mpdclient.hxx:17
struct mpd_status * status
Definition: mpdclient.hxx:58
bool mpdclient_cmd_move(struct mpdclient *c, unsigned dest, unsigned src)
bool mpdclient_cmd_volume_down(struct mpdclient *c)
bool IsConnected() const
Definition: mpdclient.hxx:127
unsigned port
Definition: mpdclient.hxx:36
enum mpd_state state
Definition: mpdclient.hxx:80
bool mpdclient_cmd_unsubscribe(struct mpdclient *c, const char *channel)
Definition: filelist.hxx:54
bool mpdclient_cmd_volume_up(struct mpdclient *c)
const struct mpd_song * song
Definition: mpdclient.hxx:59
bool mpdclient_cmd_volume(struct mpdclient *c, int value)
bool mpdclient_cmd_send_message(struct mpdclient *c, const char *channel, const char *text)
int volume
Definition: mpdclient.hxx:73
bool mpdclient_cmd_delete_range(struct mpdclient *c, unsigned start, unsigned end)
const char *const password
Definition: mpdclient.hxx:41
bool mpdclient_cmd_delete(struct mpdclient *c, int index)
bool mpdclient_cmd_subscribe(struct mpdclient *c, const char *channel)
struct mpd_connection * connection
Definition: mpdclient.hxx:50
const unsigned timeout_ms
Definition: mpdclient.hxx:39