|
a/src/mpdcli.hxx |
|
b/src/mpdcli.hxx |
|
... |
|
... |
131 |
int m_port;
|
131 |
int m_port;
|
132 |
std::string m_password;
|
132 |
std::string m_password;
|
133 |
regex_t m_tpuexpr;
|
133 |
regex_t m_tpuexpr;
|
134 |
// addtagid command only exists for mpd 0.19 and later.
|
134 |
// addtagid command only exists for mpd 0.19 and later.
|
135 |
bool m_have_addtagid;
|
135 |
bool m_have_addtagid;
|
|
|
136 |
// Position and id of last insertion: if the new request is to
|
|
|
137 |
// insert after this id, and the queue did not change, we compute
|
|
|
138 |
// the new position from the last one instead of re-reading the
|
|
|
139 |
// queue for looking up the id position. This saves a huge amount
|
|
|
140 |
// of time.
|
|
|
141 |
int m_lastinsertid;
|
|
|
142 |
int m_lastinsertpos;
|
|
|
143 |
int m_lastinsertqvers;
|
136 |
|
144 |
|
137 |
bool openconn();
|
145 |
bool openconn();
|
138 |
bool updStatus();
|
146 |
bool updStatus();
|
139 |
bool getQueueSongs(std::vector<mpd_song*>& songs);
|
147 |
bool getQueueSongs(std::vector<mpd_song*>& songs);
|
140 |
void freeSongs(std::vector<mpd_song*>& songs);
|
148 |
void freeSongs(std::vector<mpd_song*>& songs);
|