Implement secure rc file saving.
[geeqie.git] / src / rcfile.h
1 /*
2  * Geeqie
3  * (C) 2004 John Ellis
4  *
5  * Author: John Ellis
6  *
7  * This software is released under the GNU General Public License (GNU GPL).
8  * Please read the included file COPYING for more information.
9  * This software comes with no warranty of any kind, use at your own risk!
10  */
11
12
13 #ifndef RCFILE_H
14 #define RCFILE_H
15
16
17 extern SecureSaveErrno secsave_errno; /**< internal secsave error number */
18
19 SecureSaveInfo *secure_open(gchar *);
20
21 gint secure_close(SecureSaveInfo *);
22
23 gint secure_fputs(SecureSaveInfo *, const gchar *);
24 gint secure_fputc(SecureSaveInfo *, gint);
25
26 gint secure_fprintf(SecureSaveInfo *, const gchar *, ...);
27
28 gchar *secsave_strerror(SecureSaveErrno);
29
30
31
32 gchar *quoted_value(const gchar *text, const gchar **tail);
33 gchar *escquote_value(const gchar *text);
34
35 void save_options(void);
36 void load_options(void);
37
38
39 #endif
40