MCPcopy Create free account
hub / github.com/coreboot/coreboot / conf_load

Function conf_load

util/kconfig/mconf.c:731–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729}
730
731static void conf_load(void)
732{
733
734 while (1) {
735 int res;
736 dialog_clear();
737 res = dialog_inputbox(NULL, load_config_text,
738 11, 55, filename);
739 switch(res) {
740 case 0:
741 if (!dialog_input_result[0])
742 return;
743 if (!conf_read(dialog_input_result)) {
744 set_config_filename(dialog_input_result);
745 conf_set_changed(true);
746 return;
747 }
748 show_textbox(NULL, "File does not exist!", 5, 38);
749 break;
750 case 1:
751 show_helptext("Load Alternate Configuration", load_config_help);
752 break;
753 case KEY_ESC:
754 return;
755 }
756 }
757}
758
759static void conf_save(void)
760{

Callers 1

confFunction · 0.70

Calls 7

dialog_clearFunction · 0.85
conf_readFunction · 0.85
conf_set_changedFunction · 0.85
show_textboxFunction · 0.85
show_helptextFunction · 0.85
dialog_inputboxFunction · 0.70
set_config_filenameFunction · 0.70

Tested by

no test coverage detected