diff 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
line wrap: on
line diff
--- a/src/filelist.h	Tue Apr 08 21:52:04 2008 +0000
+++ b/src/filelist.h	Tue Apr 08 21:55:58 2008 +0000
@@ -37,11 +37,11 @@
 gint filter_name_exists(const gchar *name);
 gint filter_file_class(const gchar *name, FileFormatClass file_class);
 
-void filter_write_list(FILE *f);
+void filter_write_list(SecureSaveInfo *ssi);
 void filter_parse(const gchar *text);
 
 void sidecar_ext_parse(const gchar *text, gint quoted);
-void sidecar_ext_write(FILE *f);
+void sidecar_ext_write(SecureSaveInfo *ssi);
 char *sidecar_ext_to_string(); 
 void sidecar_ext_add_defaults();