2008-06-14 18:41:12 +00:00
|
|
|
#ifndef MPD_H_
|
|
|
|
#define MPD_H_
|
|
|
|
|
|
|
|
#include "libmpdclient.h"
|
|
|
|
#include "timed_thread.h"
|
|
|
|
|
|
|
|
struct mpd_s {
|
|
|
|
char *title;
|
|
|
|
char *artist;
|
|
|
|
char *album;
|
|
|
|
char *status;
|
|
|
|
char *random;
|
|
|
|
char *repeat;
|
|
|
|
char *track;
|
|
|
|
char *name;
|
|
|
|
char *file;
|
2008-10-08 11:44:27 +00:00
|
|
|
int is_playing;
|
2008-06-14 18:41:12 +00:00
|
|
|
int volume;
|
|
|
|
unsigned int port;
|
|
|
|
char host[128];
|
|
|
|
char password[128];
|
|
|
|
float progress;
|
|
|
|
int bitrate;
|
|
|
|
int length;
|
|
|
|
int elapsed;
|
|
|
|
mpd_Connection *conn;
|
|
|
|
timed_thread *timed_thread;
|
|
|
|
};
|
|
|
|
|
|
|
|
#include "conky.h"
|
|
|
|
|
|
|
|
extern void init_mpd_stats(struct mpd_s *mpd);
|
|
|
|
void clear_mpd_stats(struct mpd_s *mpd);
|
|
|
|
void *update_mpd(void *) __attribute__((noreturn));
|
|
|
|
void free_mpd_vars(struct mpd_s *mpd);
|
|
|
|
|
|
|
|
#endif /*MPD_H_*/
|