162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#include <stdarg.h>
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci/* confdata.c */
562306a36Sopenharmony_civoid conf_parse(const char *name);
662306a36Sopenharmony_ciint conf_read(const char *name);
762306a36Sopenharmony_ciint conf_read_simple(const char *name, int);
862306a36Sopenharmony_ciint conf_write_defconfig(const char *name);
962306a36Sopenharmony_ciint conf_write(const char *name);
1062306a36Sopenharmony_ciint conf_write_autoconf(int overwrite);
1162306a36Sopenharmony_civoid conf_set_changed(bool val);
1262306a36Sopenharmony_cibool conf_get_changed(void);
1362306a36Sopenharmony_civoid conf_set_changed_callback(void (*fn)(void));
1462306a36Sopenharmony_civoid conf_set_message_callback(void (*fn)(const char *s));
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci/* symbol.c */
1762306a36Sopenharmony_ciextern struct symbol * symbol_hash[SYMBOL_HASHSIZE];
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_cistruct symbol * sym_lookup(const char *name, int flags);
2062306a36Sopenharmony_cistruct symbol * sym_find(const char *name);
2162306a36Sopenharmony_civoid print_symbol_for_listconfig(struct symbol *sym);
2262306a36Sopenharmony_cistruct symbol ** sym_re_search(const char *pattern);
2362306a36Sopenharmony_ciconst char * sym_type_name(enum symbol_type type);
2462306a36Sopenharmony_civoid sym_calc_value(struct symbol *sym);
2562306a36Sopenharmony_cienum symbol_type sym_get_type(struct symbol *sym);
2662306a36Sopenharmony_cibool sym_tristate_within_range(struct symbol *sym,tristate tri);
2762306a36Sopenharmony_cibool sym_set_tristate_value(struct symbol *sym,tristate tri);
2862306a36Sopenharmony_citristate sym_toggle_tristate_value(struct symbol *sym);
2962306a36Sopenharmony_cibool sym_string_valid(struct symbol *sym, const char *newval);
3062306a36Sopenharmony_cibool sym_string_within_range(struct symbol *sym, const char *str);
3162306a36Sopenharmony_cibool sym_set_string_value(struct symbol *sym, const char *newval);
3262306a36Sopenharmony_cibool sym_is_changeable(struct symbol *sym);
3362306a36Sopenharmony_cistruct property * sym_get_choice_prop(struct symbol *sym);
3462306a36Sopenharmony_ciconst char * sym_get_string_value(struct symbol *sym);
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ciconst char * prop_get_type_name(enum prop_type type);
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci/* preprocess.c */
3962306a36Sopenharmony_cienum variable_flavor {
4062306a36Sopenharmony_ci	VAR_SIMPLE,
4162306a36Sopenharmony_ci	VAR_RECURSIVE,
4262306a36Sopenharmony_ci	VAR_APPEND,
4362306a36Sopenharmony_ci};
4462306a36Sopenharmony_civoid env_write_dep(FILE *f, const char *auto_conf_name);
4562306a36Sopenharmony_civoid variable_add(const char *name, const char *value,
4662306a36Sopenharmony_ci		  enum variable_flavor flavor);
4762306a36Sopenharmony_civoid variable_all_del(void);
4862306a36Sopenharmony_cichar *expand_dollar(const char **str);
4962306a36Sopenharmony_cichar *expand_one_token(const char **str);
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ci/* expr.c */
5262306a36Sopenharmony_civoid expr_print(struct expr *e, void (*fn)(void *, struct symbol *, const char *), void *data, int prevtoken);
53