BZ_bzRead2 is based on BZ_bzRead from the bzlib library.
[elinks.git] / src / config / opttypes.h
blob84b47d680f0d0234964ec6d48e632db7792f2264
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 *);
13 int (*set)(struct option *, unsigned char *);
14 int (*add)(struct option *, 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