Merge tag 'nfs-for-6.4-1' of git://git.linux-nfs.org/projects/anna/linux-nfs
[linux-block.git] / scripts / kconfig / lkc_proto.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
42368c37 2#include <stdarg.h>
1da177e4
LT
3
4/* confdata.c */
70529b1a
MM
5void conf_parse(const char *name);
6int conf_read(const char *name);
7int conf_read_simple(const char *name, int);
8int conf_write_defconfig(const char *name);
9int conf_write(const char *name);
00c864f8 10int conf_write_autoconf(int overwrite);
5ee54659 11void conf_set_changed(bool val);
70529b1a
MM
12bool conf_get_changed(void);
13void conf_set_changed_callback(void (*fn)(void));
5accd7f3 14void conf_set_message_callback(void (*fn)(const char *s));
1da177e4 15
1da177e4 16/* symbol.c */
70529b1a 17extern struct symbol * symbol_hash[SYMBOL_HASHSIZE];
1da177e4 18
70529b1a
MM
19struct symbol * sym_lookup(const char *name, int flags);
20struct symbol * sym_find(const char *name);
51d792cb 21void print_symbol_for_listconfig(struct symbol *sym);
70529b1a
MM
22struct symbol ** sym_re_search(const char *pattern);
23const char * sym_type_name(enum symbol_type type);
24void sym_calc_value(struct symbol *sym);
25enum symbol_type sym_get_type(struct symbol *sym);
26bool sym_tristate_within_range(struct symbol *sym,tristate tri);
27bool sym_set_tristate_value(struct symbol *sym,tristate tri);
28tristate sym_toggle_tristate_value(struct symbol *sym);
29bool sym_string_valid(struct symbol *sym, const char *newval);
30bool sym_string_within_range(struct symbol *sym, const char *str);
31bool sym_set_string_value(struct symbol *sym, const char *newval);
baa23ec8 32bool sym_is_changeable(struct symbol *sym);
70529b1a 33struct property * sym_get_choice_prop(struct symbol *sym);
70529b1a 34const char * sym_get_string_value(struct symbol *sym);
1da177e4 35
70529b1a 36const char * prop_get_type_name(enum prop_type type);
1da177e4 37
104daea1 38/* preprocess.c */
1175c025
MY
39enum variable_flavor {
40 VAR_SIMPLE,
41 VAR_RECURSIVE,
ed2a22f2 42 VAR_APPEND,
1175c025 43};
104daea1 44void env_write_dep(FILE *f, const char *auto_conf_name);
1175c025
MY
45void variable_add(const char *name, const char *value,
46 enum variable_flavor flavor);
9ced3bdd 47void variable_all_del(void);
104daea1
MY
48char *expand_dollar(const char **str);
49char *expand_one_token(const char **str);
50
1da177e4 51/* expr.c */
70529b1a 52void expr_print(struct expr *e, void (*fn)(void *, struct symbol *, const char *), void *data, int prevtoken);