* mconf : find_menu
@ 2004-06-03 17:12 FabF
0 siblings, 0 replies; only message in thread
From: FabF @ 2004-06-03 17:12 UTC (permalink / raw)
To: linux-kernel
Hi,
I'd like to have some function able to find a menu struct with filename
& prompt in mconf.This one doesn't seem to give the best results.Someone
could help ? (Roman ?).
I'm scanning internal list of menus, then next menu's list then parent
list ....
Regards,
FabF
struct menu* find_menu (const char *szfile, const char *szprompt, struct
menu* currentmenu)
{
if (!strcmp(menu_get_prompt(currentmenu), szprompt)){
return currentmenu;
}else
if(currentmenu->list){
find_menu(szfile, szprompt, currentmenu->list);
}else
if(currentmenu->next){
find_menu(szfile, szprompt,currentmenu->next);
}
else if
((currentmenu->parent)&&(currentmenu->parent->next)){
find_menu(szfile, szprompt,
currentmenu->parent->next);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-06-03 17:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-03 17:12 mconf : find_menu FabF
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®