new screen: mpd server info

This commit is contained in:
Andrzej Rybczak
2009-10-11 17:03:00 +02:00
parent aebc5db0e1
commit 03f6fd904f
14 changed files with 322 additions and 52 deletions

View File

@@ -244,6 +244,14 @@ bool CaseInsensitiveSorting::operator()(const Item &a, const Item &b)
return a.type < b.type;
}
std::string Timestamp(time_t t)
{
char result[32];
tm info;
result[strftime(result, 31, "%x %X", localtime_r(&t, &info))] = 0;
return result;
}
void UpdateSongList(Menu<Song> *menu)
{
bool bold = 0;