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