use a global struct moc_s
[monky] / src / moc.h
1 /* MOC Conky integration
2  *
3  * Please see COPYING for details
4  *
5  * Copyright (c) 2008, Henri Häkkinen
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  * You should have received a copy of the GNU General Public License
17  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20
21 #ifndef MOC_H_
22 #define MOC_H_
23
24 #include "timed_thread.h"
25
26 struct moc_s {
27         char *state;
28         char *file;
29         char *title;
30         char *artist;
31         char *song;
32         char *album;
33         char *totaltime;
34         char *timeleft;
35         char *curtime;
36         char *bitrate;
37         char *rate;
38 };
39 extern struct moc_s moc;
40
41 int run_moc_thread(double interval);
42 void free_moc(void);
43
44 #endif /* MOC_H_ */
45