view src/cache_maint.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 f6e307c7bad6
children fc3a2ac664c1
line wrap: on
line source

/*
 * Geeqie
 * (C) 2004 John Ellis
 *
 * Author: John Ellis
 *
 * This software is released under the GNU General Public License (GNU GPL).
 * Please read the included file COPYING for more information.
 * This software comes with no warranty of any kind, use at your own risk!
 */


#ifndef CACHE_MAINT_H
#define CACHE_MAINT_H


void cache_maintain_home(gint metadata, gint clear, GtkWidget *parent);

gint cache_maintain_home_dir(const gchar *dir, gint recursive, gint clear);
gint cache_maintain_dir(const gchar *dir, gint recursive, gint clear);

void cache_maint_moved(FileData *fd);
void cache_maint_removed(FileData *fd);
void cache_maint_copied(FileData *fd);


void cache_manager_gqview_clear_confirm(GtkWidget *parent);
void cache_manager_show(void);


#endif