fix CID 1596595: Resource leaks, and CID 1596594: (CHECKED_RETURN)
[claws.git] / src / plugins / litehtml_viewer / lh_prefs.h
1 /*
2  * Claws Mail -- A GTK based, lightweight, and fast e-mail client
3  * Copyright(C) 2019 the Claws Mail Team
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3 of the License, or
8  * (at your option) any later version.
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write tothe Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16  */
17
18 #ifndef LH_PREFS_H
19 #define LH_PREFS_H
20
21 #include <glib.h>
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 typedef struct _LHPrefs LHPrefs;
28
29 struct _LHPrefs
30 {
31         gboolean enable_remote_content;
32         gint image_cache_size;
33         gchar *default_font;
34 };
35
36 LHPrefs *lh_prefs_get(void);
37 void lh_prefs_init(void);
38 void lh_prefs_done(void);
39
40 #ifdef __cplusplus
41 } /* extern "C" */
42 #endif
43
44 #endif /* LH_PREFS_H */