File: save-restore.h

package info (click to toggle)
balsa 0.6.0-1.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 4,044 kB
  • ctags: 3,648
  • sloc: ansic: 36,750; sh: 7,458; makefile: 518; sed: 93
file content (49 lines) | stat: -rw-r--r-- 1,680 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* Balsa E-Mail Client
 * Copyright (C) 1998 Jay Painter and Stuart Parmenter
 *
 * 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, 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 __SAVE_RESTORE_H__
#define __SAVE_RESTORE_H__

#include "libbalsa.h"

/* FIXME XXX This should be a "configure" option.  Stuart? */
#define BALSA_CONFIG_FILE ".balsarc"


/* arp --- All proplist keys are assumed to be no large than this.
 * This is to try and minimize the number of magic numbers used when
 * key buffers are statically allocated on the stack
 */
#ifndef MAX_PROPLIST_KEY_LEN
/* NB!!! This includes space for the terminating \0! */
#define MAX_PROPLIST_KEY_LEN    32
#endif


gint config_load (gchar * user_filename);
gint config_save (gchar * user_filename);

gint config_mailbox_add (Mailbox * mailbox, char *key_arg);
gint config_mailbox_delete (gchar * name);
gint config_mailbox_update (Mailbox * mailbox, gchar * old_mbox_name);
gint config_mailboxes_init (void);

gint config_global_load (void);
gint config_global_save (void);

#endif /* __SAVE_RESTORE_H__ */