diff options
author | Kalle Wallin <kaw@linux.se> | 2004-03-29 18:11:11 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-03-29 18:11:11 +0000 |
commit | b6d6347802ff71c27db5228af1b1e893a61d17f9 (patch) | |
tree | 5b2072259b6ab9c42c53ab22d8a0714c90dc959f | |
parent | b4c27011d20196aeeb104edb3c2e3dd97861e8d8 (diff) | |
download | mpd-b6d6347802ff71c27db5228af1b1e893a61d17f9.tar.gz mpd-b6d6347802ff71c27db5228af1b1e893a61d17f9.tar.xz mpd-b6d6347802ff71c27db5228af1b1e893a61d17f9.zip |
Updated to 0.10.1
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@535 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r-- | libmpdclient.c | 8 | ||||
-rw-r--r-- | libmpdclient.h | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/libmpdclient.c b/libmpdclient.c index a58ca06e0..7a70faa72 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 217203021..6d749fbd2 100644 --- a/libmpdclient.h +++ b/libmpdclient.h @@ -20,7 +20,6 @@ #ifndef LIBMPDCLIENT_H #define LIBMPDCLIENT_H -#include <sys/param.h> #include <sys/time.h> #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); |