big dialogs: set_curosr2 -> set_dlg_cursor.
[elinks.git] / src / config / opttypes.h
blob65ef11f4aac7aca7a76d09c32f72848bb8437df7
1 #ifndef EL__CONFIG_OPTTYPES_H
2 #define EL__CONFIG_OPTTYPES_H
4 #include "config/options.h"
5 #include "util/string.h"
7 struct option_type_info {
8 unsigned char *name;
9 unsigned char *(*cmdline)(struct option *, unsigned char ***, int *);
10 unsigned char *(*read)(struct option *, unsigned char **, int *);
11 void (*write)(struct option *, struct string *);
12 void (*dup)(struct option *, struct option *, int);
13 int (*set)(struct option *, unsigned char *);
14 int (*equals)(struct option *, const unsigned char *);
15 unsigned char *help_str;
18 /* enum option_type is index in this array */
19 extern const struct option_type_info option_types[];
21 extern int commandline;
23 unsigned char *get_option_type_name(enum option_type type);
25 #endif