Revert "Uhh..ansohus"
[monky] / src / core.h
1 /* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
2  *
3  * Conky, a system monitor, based on torsmo
4  *
5  * Any original torsmo code is licensed under the BSD license
6  *
7  * All code written since the fork of torsmo is licensed under the GPL
8  *
9  * Please see COPYING for details
10  *
11  * Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
12  * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al.
13  *      (see AUTHORS)
14  * All rights reserved.
15  *
16  * This program is free software: you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation, either version 3 of the License, or
19  * (at your option) any later version.
20  *
21  * This program is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24  * GNU General Public License for more details.
25  * You should have received a copy of the GNU General Public License
26  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
27  *
28  * vim: ts=4 sw=4 noet ai cindent syntax=c
29  *
30  */
31
32 #ifndef _CONKY_CORE_H_
33 #define _CONKY_CORE_H_
34
35 #include "conky.h"
36
37 struct text_object *construct_text_object(const char *s, const char *arg, long
38                 line, void **ifblock_opaque, void *free_at_crash);
39
40 size_t remove_comments(char *string);
41
42 int extract_variable_text_internal(struct text_object *retval, const char *const_p);
43
44 void free_text_objects(struct text_object *root, int internal);
45
46 #ifdef X11
47 void scan_mixer_bar(const char *arg, int *a, int *w, int *h);
48 #endif /* X11 */
49
50 #ifdef HAVE_ICONV
51 void set_iconv_converting(char i);
52 void set_iconv_selected(long i);
53 void iconv_convert(size_t a, char *buff_in, char *p, size_t p_max_size);
54 #endif /* HAVE_ICONV */
55
56 #endif /* _CONKY_CORE_H_ */