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

Function conf_load

scripts/config/mconf.c:796–822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

794}
795
796static void conf_load(void)
797{
798
799 while (1) {
800 int res;
801 dialog_clear();
802 res = dialog_inputbox(NULL, load_config_text,
803 11, 55, filename);
804 switch(res) {
805 case 0:
806 if (!dialog_input_result[0])
807 return;
808 if (!conf_read(dialog_input_result)) {
809 set_config_filename(dialog_input_result);
810 conf_set_changed(true);
811 return;
812 }
813 show_textbox(NULL, "File does not exist!", 5, 38);
814 break;
815 case 1:
816 show_helptext("Load Alternate Configuration", load_config_help);
817 break;
818 case KEY_ESC:
819 return;
820 }
821 }
822}
823
824static void conf_save(void)
825{

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