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
{
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
);