summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b4c2701)
raw | patch | inline | side by side (parent: b4c2701)
author | Kalle Wallin <kaw@linux.se> | |
Mon, 29 Mar 2004 18:11:11 +0000 (18:11 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Mon, 29 Mar 2004 18:11:11 +0000 (18:11 +0000) |
libmpdclient.c | patch | blob | history | |
libmpdclient.h | patch | blob | history |
diff --git a/libmpdclient.c b/libmpdclient.c
index a58ca06e0cdd3a1992e0de86a189fa6934dd360d..7a70faa72ef9f13a35c01aa5f360ed3f902db9d5 100644 (file)
--- a/libmpdclient.c
+++ b/libmpdclient.c
stats->numberOfSongs = 0;
stats->uptime = 0;
stats->dbUpdateTime = 0;
+ stats->playTime = 0;
+ stats->dbPlayTime = 0;
mpd_getNextReturnElement(connection);
if(connection->error) {
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 217203021a2461b73801a089c62622c2db50b828..6d749fbd2dc1cb290fcec6d50cbc6597fc86c9d8 100644 (file)
--- a/libmpdclient.h
+++ b/libmpdclient.h
#ifndef LIBMPDCLIENT_H
#define LIBMPDCLIENT_H
-#include <sys/param.h>
#include <sys/time.h>
#define MPD_BUFFER_MAX_LENGTH 50000
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);