From b6d6347802ff71c27db5228af1b1e893a61d17f9 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Mon, 29 Mar 2004 18:11:11 +0000 Subject: [PATCH] Updated to 0.10.1 git-svn-id: https://svn.musicpd.org/ncmpc/trunk@535 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- libmpdclient.c | 8 ++++++++ libmpdclient.h | 3 --- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libmpdclient.c b/libmpdclient.c index a58ca06..7a70faa 100644 --- a/libmpdclient.c +++ b/libmpdclient.c @@ -621,6 +621,8 @@ mpd_Stats * mpd_getStats(mpd_Connection * connection) { stats->numberOfSongs = 0; stats->uptime = 0; stats->dbUpdateTime = 0; + stats->playTime = 0; + stats->dbPlayTime = 0; mpd_getNextReturnElement(connection); if(connection->error) { @@ -644,6 +646,12 @@ mpd_Stats * mpd_getStats(mpd_Connection * connection) { else if(strcmp(re->name,"db_update")==0) { stats->dbUpdateTime = strtol(re->value,NULL,10); } + else if(strcmp(re->name,"playtime")==0) { + stats->playTime = strtol(re->value,NULL,10); + } + else if(strcmp(re->name,"db_playtime")==0) { + stats->dbPlayTime = strtol(re->value,NULL,10); + } mpd_getNextReturnElement(connection); if(connection->error) { diff --git a/libmpdclient.h b/libmpdclient.h index 2172030..6d749fb 100644 --- a/libmpdclient.h +++ b/libmpdclient.h @@ -20,7 +20,6 @@ #ifndef LIBMPDCLIENT_H #define LIBMPDCLIENT_H -#include #include #define MPD_BUFFER_MAX_LENGTH 50000 @@ -377,8 +376,6 @@ void mpd_sendVolumeCommand(mpd_Connection * connection, int volumeChange); void mpd_sendCrossfadeCommand(mpd_Connection * connection, int seconds); -int mpd_getCrossfade(mpd_Connection * connection); - void mpd_sendUpdateCommand(mpd_Connection * connection); void mpd_sendPasswordCommand(mpd_Connection * connection, const char * pass); -- 2.30.2