2ff1b84aaf10ef883f294f221afc8f420fa1f15c
[monky] / src / mpd.h
1 #ifndef MPD_H_
2 #define MPD_H_
3
4 #include "libmpdclient.h"
5 #include "timed_thread.h"
6
7 struct mpd_s {
8         char *title;
9         char *artist;
10         char *album;
11         char *status;
12         char *random;
13         char *repeat;
14         char *track;
15         char *name;
16         char *file;
17         int volume;
18         unsigned int port;
19         char host[128];
20         char password[128];
21         float progress;
22         int bitrate;
23         int length;
24         int elapsed;
25         mpd_Connection *conn;
26         timed_thread *timed_thread;
27 };
28
29 #include "conky.h"
30
31 extern void init_mpd_stats(struct mpd_s *mpd);
32 void clear_mpd_stats(struct mpd_s *mpd);
33 void *update_mpd(void *) __attribute__((noreturn));
34 void free_mpd_vars(struct mpd_s *mpd);
35
36 #endif /*MPD_H_*/