lkc_proto.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef LKC_PROTO_H
  3. #define LKC_PROTO_H
  4. #include <stdarg.h>
  5. /* confdata.c */
  6. void conf_parse(const char *name);
  7. int conf_read(const char *name);
  8. int conf_read_simple(const char *name, int);
  9. int conf_write_defconfig(const char *name);
  10. int conf_write(const char *name);
  11. int conf_write_autoconf(int overwrite);
  12. void conf_set_changed(bool val);
  13. bool conf_get_changed(void);
  14. void conf_set_changed_callback(void (*fn)(bool));
  15. void conf_set_message_callback(void (*fn)(const char *s));
  16. bool conf_errors(void);
  17. /* symbol.c */
  18. struct symbol * sym_lookup(const char *name, int flags);
  19. struct symbol * sym_find(const char *name);
  20. void print_symbol_for_listconfig(struct symbol *sym);
  21. struct symbol ** sym_re_search(const char *pattern);
  22. const char * sym_type_name(enum symbol_type type);
  23. void sym_calc_value(struct symbol *sym);
  24. bool sym_dep_errors(void);
  25. enum symbol_type sym_get_type(const struct symbol *sym);
  26. bool sym_tristate_within_range(const struct symbol *sym, tristate tri);
  27. bool sym_set_tristate_value(struct symbol *sym,tristate tri);
  28. void choice_set_value(struct menu *choice, struct symbol *sym);
  29. tristate sym_toggle_tristate_value(struct symbol *sym);
  30. bool sym_string_valid(struct symbol *sym, const char *newval);
  31. bool sym_string_within_range(struct symbol *sym, const char *str);
  32. bool sym_set_string_value(struct symbol *sym, const char *newval);
  33. bool sym_is_changeable(const struct symbol *sym);
  34. struct menu *sym_get_prompt_menu(const struct symbol *sym);
  35. struct menu *sym_get_choice_menu(const struct symbol *sym);
  36. const char * sym_get_string_value(struct symbol *sym);
  37. const char * prop_get_type_name(enum prop_type type);
  38. /* expr.c */
  39. void expr_print(const struct expr *e,
  40. void (*fn)(void *, struct symbol *, const char *),
  41. void *data, int prevtoken);
  42. #endif /* LKC_PROTO_H */