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

Function menu_get_parent_menu

scripts/config/menu.c:664–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662}
663
664struct menu *menu_get_parent_menu(struct menu *menu)
665{
666 enum prop_type type;
667
668 for (; menu != &rootmenu; menu = menu->parent) {
669 type = menu->prompt ? menu->prompt->type : 0;
670 if (type == P_MENU)
671 break;
672 }
673 return menu;
674}
675
676bool menu_has_help(struct menu *menu)
677{

Callers 3

setParentMenuMethod · 0.85
setMenuLinkMethod · 0.85
check_confFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected