Mercurial > geeqie.yaz
comparison src/filelist.h @ 276:4f526d436873
Implement secure rc file saving.
First data is written to a temporary file, then if nothing
was wrong, this file is renamed to the final name.
This way the risk of corrupted rc file is greatly reduced.
The code is borrowed from ELinks (http://elinks.cz).
author | zas_ |
---|---|
date | Tue, 08 Apr 2008 21:55:58 +0000 |
parents | cdec56e38dd1 |
children | 4b2d7f9af171 |
comparison
equal
deleted
inserted
replaced
275:dc69ea2dcf76 | 276:4f526d436873 |
---|---|
35 GList *filter_to_list(const gchar *extensions); | 35 GList *filter_to_list(const gchar *extensions); |
36 | 36 |
37 gint filter_name_exists(const gchar *name); | 37 gint filter_name_exists(const gchar *name); |
38 gint filter_file_class(const gchar *name, FileFormatClass file_class); | 38 gint filter_file_class(const gchar *name, FileFormatClass file_class); |
39 | 39 |
40 void filter_write_list(FILE *f); | 40 void filter_write_list(SecureSaveInfo *ssi); |
41 void filter_parse(const gchar *text); | 41 void filter_parse(const gchar *text); |
42 | 42 |
43 void sidecar_ext_parse(const gchar *text, gint quoted); | 43 void sidecar_ext_parse(const gchar *text, gint quoted); |
44 void sidecar_ext_write(FILE *f); | 44 void sidecar_ext_write(SecureSaveInfo *ssi); |
45 char *sidecar_ext_to_string(); | 45 char *sidecar_ext_to_string(); |
46 void sidecar_ext_add_defaults(); | 46 void sidecar_ext_add_defaults(); |
47 | 47 |
48 gint ishidden(const gchar *name); | 48 gint ishidden(const gchar *name); |
49 | 49 |