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