1 /* $Id: opttypes.h,v 1.12 2004/12/16 14:43:41 zas Exp $ */
3 #ifndef EL__CONFIG_OPTTYPES_H
4 #define EL__CONFIG_OPTTYPES_H
6 #include "config/options.h"
7 #include "util/string.h"
9 struct option_type_info
{
11 unsigned char *(*cmdline
)(struct option
*, unsigned char ***, int *);
12 unsigned char *(*read
)(struct option
*, unsigned char **, int *);
13 void (*write
)(struct option
*, struct string
*);
14 void (*dup
)(struct option
*, struct option
*);
15 int (*set
)(struct option
*, unsigned char *);
16 int (*add
)(struct option
*, unsigned char *);
17 unsigned char *help_str
;
20 /* enum option_type is index in this array */
21 extern const struct option_type_info option_types
[];
23 extern int commandline
;
25 unsigned char *get_option_type_name(enum option_type type
);