]> git.deb.at Git - pkg/abook.git/blob - options.h
5d83f985f687254920b62230833b8f146317ebe3
[pkg/abook.git] / options.h
1 #ifndef _OPTIONS_H
2 #define _OPTIONS_H
3
4 #if 0
5 typedef int bool;
6 #else
7 #       include <abook_curses.h> /* bool */
8 #endif
9
10 /*
11  * bool options
12  */
13
14
15 enum bool_opts {
16         BOOL_AUTOSAVE,
17         BOOL_SHOW_ALL_EMAILS,
18         BOOL_MUTT_RETURN_ALL_EMAILS,
19         BOOL_USE_ASCII_ONLY,
20         BOOL_ADD_EMAIL_PREVENT_DUPLICATES,
21         BOOL_MAX
22 };
23
24 /*
25  * int options
26  */
27
28 enum int_opts {
29         INT_EMAILPOS,
30         INT_EXTRAPOS,
31         INT_MAXIMUM /* INT_MAX conflicts on some systems */
32 };
33
34 /*
35  * string options
36  */
37
38 enum str_opts {
39         STR_EXTRA_COLUMN,
40         STR_EXTRA_ALTERNATIVE,
41         STR_MUTT_COMMAND,
42         STR_PRINT_COMMAND,
43         STR_WWW_COMMAND,
44         STR_ADDRESS_STYLE,
45         STR_MAX
46 };
47
48
49 int             opt_get_int(enum int_opts opt);
50 bool            opt_get_bool(enum bool_opts opt);
51 char *          opt_get_str(enum str_opts opt);
52 void            init_opts();
53 void            free_opts();
54 int             load_opts(char *filename);
55
56 #endif