view src/secure_save.h @ 351:55ee774d5bc3

Simplify read_*_option() stuff by passing pointer to option value. Introduce read_uint_option() to read enum values and read_int_option_clamp() to read clamped values.
author zas_
date Sun, 13 Apr 2008 08:36:17 +0000
parents 99139bf9f380
children 48c8e49b571c
line wrap: on
line source

/*
 * Geeqie
 *
 * Author: Vladimir Nadvornik
 * based on the code developped for ELinks by Laurent Monin
 *
 * 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 SECURE_SAVE_H
#define SECURE_SAVE_H

extern SecureSaveErrno secsave_errno; /**< internal secsave error number */

SecureSaveInfo *secure_open(const gchar *);

gint secure_close(SecureSaveInfo *);

gint secure_fputs(SecureSaveInfo *, const gchar *);
gint secure_fputc(SecureSaveInfo *, gint);

gint secure_fprintf(SecureSaveInfo *, const gchar *, ...);

gchar *secsave_strerror(SecureSaveErrno);

#endif /* SECURE_SAVE_H */