claws-mail/src/common/prefs.h
Christoph Hohmann e0a472c247 0.8.11claws64
* src/common/prefs.h
* src/plugins/image_viewer/Makefile.am
* src/plugins/image_viewer/plugin.c
* src/plugins/image_viewer/viewer.[ch]
* src/plugins/image_viewer/viewerprefs.[ch]     ** NEW **
        add PrefsPage for ImageViewer
2003-03-29 15:25:13 +00:00

46 lines
1.4 KiB
C

/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
* Copyright (C) 1999-2002 Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef PREFS_H
#define PREFS_H 1
#include <stdio.h>
#include <glib.h>
typedef struct _PrefFile PrefFile;
struct _PrefFile {
FILE *fp;
FILE *orig_fp;
gchar *path;
gboolean writing;
};
PrefFile *prefs_read_open (const gchar *path);
PrefFile *prefs_write_open (const gchar *path);
gint prefs_file_close (PrefFile *pfile);
gint prefs_file_close_revert (PrefFile *pfile);
gboolean prefs_is_readonly (const gchar *path);
gboolean prefs_rc_is_readonly (const gchar *rcfile);
gint prefs_set_block_label (PrefFile *pfile,
const gchar *block_label);
#endif