* Added $if_mpd_playing patch (thanks tarpman)
[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 is_playing;
18         int volume;
19         unsigned int port;
20         char host[128];
21         char password[128];
22         float progress;
23         int bitrate;
24         int length;
25         int elapsed;
26         mpd_Connection *conn;
27         timed_thread *timed_thread;
28 };
29
30 #include "conky.h"
31
32 extern void init_mpd_stats(struct mpd_s *mpd);
33 void clear_mpd_stats(struct mpd_s *mpd);
34 void *update_mpd(void *) __attribute__((noreturn));
35 void free_mpd_vars(struct mpd_s *mpd);
36
37 #endif /*MPD_H_*/