mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-28 04:55:08 +00:00
4be537a020
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1267 7f574dfc-610e-0410-a909-a81674777703
38 lines
647 B
C
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_*/
|