18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#include <stdarg.h>
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci/* confdata.c */
58c2ecf20Sopenharmony_civoid conf_parse(const char *name);
68c2ecf20Sopenharmony_ciint conf_read(const char *name);
78c2ecf20Sopenharmony_ciint conf_read_simple(const char *name, int);
88c2ecf20Sopenharmony_ciint conf_write_defconfig(const char *name);
98c2ecf20Sopenharmony_ciint conf_write(const char *name);
108c2ecf20Sopenharmony_ciint conf_write_autoconf(int overwrite);
118c2ecf20Sopenharmony_cibool conf_get_changed(void);
128c2ecf20Sopenharmony_civoid conf_set_changed_callback(void (*fn)(void));
138c2ecf20Sopenharmony_civoid conf_set_message_callback(void (*fn)(const char *s));
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci/* symbol.c */
168c2ecf20Sopenharmony_ciextern struct symbol * symbol_hash[SYMBOL_HASHSIZE];
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_cistruct symbol * sym_lookup(const char *name, int flags);
198c2ecf20Sopenharmony_cistruct symbol * sym_find(const char *name);
208c2ecf20Sopenharmony_ciconst char * sym_escape_string_value(const char *in);
218c2ecf20Sopenharmony_cistruct symbol ** sym_re_search(const char *pattern);
228c2ecf20Sopenharmony_ciconst char * sym_type_name(enum symbol_type type);
238c2ecf20Sopenharmony_civoid sym_calc_value(struct symbol *sym);
248c2ecf20Sopenharmony_cienum symbol_type sym_get_type(struct symbol *sym);
258c2ecf20Sopenharmony_cibool sym_tristate_within_range(struct symbol *sym,tristate tri);
268c2ecf20Sopenharmony_cibool sym_set_tristate_value(struct symbol *sym,tristate tri);
278c2ecf20Sopenharmony_citristate sym_toggle_tristate_value(struct symbol *sym);
288c2ecf20Sopenharmony_cibool sym_string_valid(struct symbol *sym, const char *newval);
298c2ecf20Sopenharmony_cibool sym_string_within_range(struct symbol *sym, const char *str);
308c2ecf20Sopenharmony_cibool sym_set_string_value(struct symbol *sym, const char *newval);
318c2ecf20Sopenharmony_cibool sym_is_changeable(struct symbol *sym);
328c2ecf20Sopenharmony_cistruct property * sym_get_choice_prop(struct symbol *sym);
338c2ecf20Sopenharmony_ciconst char * sym_get_string_value(struct symbol *sym);
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciconst char * prop_get_type_name(enum prop_type type);
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci/* preprocess.c */
388c2ecf20Sopenharmony_cienum variable_flavor {
398c2ecf20Sopenharmony_ci	VAR_SIMPLE,
408c2ecf20Sopenharmony_ci	VAR_RECURSIVE,
418c2ecf20Sopenharmony_ci	VAR_APPEND,
428c2ecf20Sopenharmony_ci};
438c2ecf20Sopenharmony_civoid env_write_dep(FILE *f, const char *auto_conf_name);
448c2ecf20Sopenharmony_civoid variable_add(const char *name, const char *value,
458c2ecf20Sopenharmony_ci		  enum variable_flavor flavor);
468c2ecf20Sopenharmony_civoid variable_all_del(void);
478c2ecf20Sopenharmony_cichar *expand_dollar(const char **str);
488c2ecf20Sopenharmony_cichar *expand_one_token(const char **str);
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci/* expr.c */
518c2ecf20Sopenharmony_civoid expr_print(struct expr *e, void (*fn)(void *, struct symbol *, const char *), void *data, int prevtoken);
52