1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-28 04:55:08 +00:00
conky/src/mpd.h
2008-10-08 11:44:27 +00:00

38 lines
647 B
C

#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;
int is_playing;
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_*/