Code

Updated to 0.10.1
authorKalle Wallin <kaw@linux.se>
Mon, 29 Mar 2004 18:11:11 +0000 (18:11 +0000)
committerKalle Wallin <kaw@linux.se>
Mon, 29 Mar 2004 18:11:11 +0000 (18:11 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@535 09075e82-0dd4-0310-85a5-a0d7c8717e4f

libmpdclient.c
libmpdclient.h

index a58ca06e0cdd3a1992e0de86a189fa6934dd360d..7a70faa72ef9f13a35c01aa5f360ed3f902db9d5 100644 (file)
@@ -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) {
index 217203021a2461b73801a089c62622c2db50b828..6d749fbd2dc1cb290fcec6d50cbc6597fc86c9d8 100644 (file)
@@ -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);