1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-01 03:36:26 -04:00
elinks/src/config/opttypes.h
Witold Filipczyk 0fea79cc8f [cflags] Removed -Wno-pointer-sign
Likely some new bugs were introduced by this change.
The long term goal is clean compilation by g++.
2021-01-02 16:20:27 +01:00

34 lines
718 B
C

#ifndef EL__CONFIG_OPTTYPES_H
#define EL__CONFIG_OPTTYPES_H
#include "config/options.h"
#include "util/string.h"
#ifdef __cplusplus
extern "C" {
#endif
struct option_type_info {
char *name;
char *(*cmdline)(struct option *, char ***, int *);
char *(*read)(struct option *, char **, int *);
void (*write)(struct option *, struct string *);
void (*dup)(struct option *, struct option *, int);
int (*set)(struct option *, char *);
int (*equals)(struct option *, const char *);
char *help_str;
};
/* enum option_type is index in this array */
extern const struct option_type_info option_types[];
extern int commandline;
char *get_option_type_name(enum option_type type);
#ifdef __cplusplus
}
#endif
#endif