make changes from 7b6521a3 compatible with <mpd-0.14

This commit is contained in:
Andrzej Rybczak
2009-01-30 19:47:14 +01:00
parent 791daa1f7e
commit 9cc1689a71
4 changed files with 59 additions and 35 deletions

View File

@@ -101,6 +101,11 @@ void Connection::Disconnect()
ClearQueue();
}
float Connection::Version() const
{
return itsConnection ? itsConnection->version[1] + itsConnection->version[2]*0.1 : 0;
}
void Connection::SetHostname(const string &host)
{
size_t at = host.find("@");