]> git.deb.at Git - pkg/abook.git/blob - options.h
- correct a typo
[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_SHOW_CURSOR,
22         BOOL_MAX
23 };
24
25 /*
26  * int options
27  */
28
29 enum int_opts {
30         INT_EMAILPOS,
31         INT_EXTRAPOS,
32         INT_MAXIMUM /* INT_MAX conflicts on some systems */
33 };
34
35 /*
36  * string options
37  */
38
39 enum str_opts {
40         STR_EXTRA_COLUMN,
41         STR_EXTRA_ALTERNATIVE,
42         STR_MUTT_COMMAND,
43         STR_PRINT_COMMAND,
44         STR_WWW_COMMAND,
45         STR_ADDRESS_STYLE,
46         STR_SORT_FIELD,
47         STR_MAX
48 };
49
50
51 int             opt_get_int(enum int_opts opt);
52 bool            opt_get_bool(enum bool_opts opt);
53 char *          opt_get_str(enum str_opts opt);
54 void            init_opts();
55 void            free_opts();
56 int             load_opts(char *filename);
57
58 #endif