aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmpdclient.c8
-rw-r--r--libmpdclient.h3
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);