Include dependency graph for conf.c:
Go to the source code of this file.
Defines | |
#define | LKC_DIRECT_LINK |
Enumerations | |
enum | { ask_all, ask_new, ask_silent, set_default, set_yes, set_mod, set_no, set_random } |
Functions | |
static void | conf (struct menu *menu) |
static void | check_conf (struct menu *menu) |
static void | strip (char *str) |
static void | check_stdin (void) |
static void | conf_askvalue (struct symbol *sym, const char *def) |
int | conf_string (struct menu *menu) |
static int | conf_sym (struct menu *menu) |
static int | conf_choice (struct menu *menu) |
int | main (int ac, char **av) |
Variables | |
enum { ... } | input_mode |
char * | defconfig_file |
static int | indent = 1 |
static int | valid_stdin = 1 |
static int | conf_cnt |
static char | line [128] |
static struct menu * | rootEntry |
static char | nohelp_text [] = "Sorry, no help available for this option yet.\n" |
anonymous enum |
static void check_conf | ( | struct menu * | menu | ) | [static] |
Definition at line 461 of file conf.c.
References conf(), conf_cnt, menu::list, menu_get_parent_menu(), menu_is_visible(), mod, menu::next, rootEntry, menu::sym, sym_get_tristate_value(), sym_has_value(), sym_is_changable(), and sym_is_choice().
Referenced by conf(), and main().
Here is the call graph for this function:
static void check_stdin | ( | void | ) | [static] |
Definition at line 56 of file conf.c.
References ask_silent, input_mode, and valid_stdin.
Referenced by conf_askvalue(), and conf_choice().
static void conf | ( | struct menu * | menu | ) | [static] |
Definition at line 399 of file conf.c.
References ask_silent, check_conf(), conf_choice(), conf_string(), conf_sym(), indent, input_mode, menu::list, menu_get_prompt(), menu_is_visible(), mod, menu::next, P_COMMENT, P_MENU, menu::prompt, rootEntry, S_HEX, S_INT, S_STRING, menu::sym, sym_is_choice(), symbol::type, and property::type.
Referenced by check_conf(), conf(), conf_choice(), and main().
Here is the call graph for this function:
static void conf_askvalue | ( | struct symbol * | sym, | |
const char * | def | |||
) | [static] |
Definition at line 66 of file conf.c.
References ask_all, ask_new, ask_silent, check_stdin(), input_mode, line, mod, no, S_HEX, S_INT, S_STRING, S_TRISTATE, set_default, set_mod, set_no, set_random, set_yes, menu::sym, sym_get_type(), sym_has_value(), sym_is_changable(), sym_tristate_within_range(), and yes.
Referenced by conf_string(), and conf_sym().
Here is the call graph for this function:
static int conf_choice | ( | struct menu * | menu | ) | [static] |
Definition at line 269 of file conf.c.
References ask_all, ask_new, ask_silent, check_stdin(), conf(), conf_sym(), symbol::help, indent, input_mode, line, menu::list, menu_get_prompt(), menu_is_visible(), mod, symbol::name, menu::next, no, nohelp_text, set_default, set_mod, set_no, set_random, set_yes, strip(), menu::sym, sym_calc_value(), sym_get_choice_value(), sym_get_tristate_value(), sym_get_type(), sym_has_value(), sym_is_changable(), sym_set_choice_value(), and yes.
Referenced by conf().
Here is the call graph for this function:
static void conf_string | ( | struct menu * | menu | ) |
Definition at line 161 of file conf.c.
References conf_askvalue(), symbol::help, indent, line, symbol::name, nohelp_text, menu::prompt, menu::sym, sym_get_string_value(), sym_set_string_value(), and property::text.
Referenced by conf().
Here is the call graph for this function:
static int conf_sym | ( | struct menu * | menu | ) | [static] |
Definition at line 195 of file conf.c.
References conf_askvalue(), symbol::help, indent, line, mod, symbol::name, no, nohelp_text, menu::prompt, strip(), menu::sym, sym_get_string_value(), sym_get_tristate_value(), sym_get_type(), sym_set_tristate_value(), sym_tristate_within_range(), property::text, symbol::type, and yes.
Referenced by conf(), and conf_choice().
Here is the call graph for this function:
int main | ( | int | ac, | |
char ** | av | |||
) |
Definition at line 485 of file conf.c.
References ask_all, ask_new, ask_silent, check_conf(), conf(), conf_cnt, conf_get_default_confname(), conf_parse(), conf_read(), conf_write(), defconfig_file, input_mode, rootEntry, rootmenu, set_default, set_mod, set_no, set_random, set_yes, and valid_stdin.
Here is the call graph for this function:
static void strip | ( | char * | str | ) | [static] |
int conf_cnt [static] |
char* defconfig_file |
int indent = 1 [static] |
Definition at line 31 of file conf.c.
Referenced by build_conf(), conf(), conf_choice(), conf_string(), conf_sym(), cprint_init(), display_tree(), place_node(), and update_tree().
enum { ... } input_mode |
Referenced by check_stdin(), conf(), conf_askvalue(), conf_choice(), and main().
char line[128] [static] |
Definition at line 34 of file conf.c.
Referenced by conf_askvalue(), conf_choice(), conf_read(), conf_string(), conf_sym(), get_line(), print_line(), rt_printk(), and rt_sync_printk().
char nohelp_text[] = "Sorry, no help available for this option yet.\n" [static] |
Definition at line 37 of file conf.c.
Referenced by conf_choice(), conf_string(), conf_sym(), show_help(), and text_insert_help().
int valid_stdin = 1 [static] |