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

Function check_conf

scripts/config/conf.c:632–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630}
631
632static void check_conf(struct menu *menu)
633{
634 struct symbol *sym;
635 struct menu *child;
636
637 if (!menu_is_visible(menu))
638 return;
639
640 sym = menu->sym;
641 if (sym && !sym_has_value(sym) &&
642 (sym_is_changeable(sym) ||
643 (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes))) {
644
645 switch (input_mode) {
646 case listnewconfig:
647 if (sym->name)
648 print_symbol_for_listconfig(sym);
649 break;
650 case helpnewconfig:
651 printf("-----\n");
652 print_help(menu);
653 printf("-----\n");
654 break;
655 default:
656 if (!conf_cnt++)
657 printf("*\n* Restart config...\n*\n");
658 rootEntry = menu_get_parent_menu(menu);
659 conf(rootEntry);
660 break;
661 }
662 }
663
664 for (child = menu->list; child; child = child->next)
665 check_conf(child);
666}
667
668static const struct option long_opts[] = {
669 {"help", no_argument, NULL, 'h'},

Callers 2

confFunction · 0.85
mainFunction · 0.85

Calls 9

menu_is_visibleFunction · 0.85
sym_has_valueFunction · 0.85
sym_is_changeableFunction · 0.85
sym_is_choiceFunction · 0.85
sym_get_tristate_valueFunction · 0.85
print_helpFunction · 0.85
menu_get_parent_menuFunction · 0.85
confFunction · 0.70

Tested by

no test coverage detected