summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/lkc_proto.h
diff options
context:
space:
mode:
authorDirk Gouders <dirk@gouders.net>2013-05-19 21:49:34 +0200
committerYann E. MORIN <yann.morin.1998@free.fr>2013-06-18 23:58:59 +0200
commit1278ebdbc3167883f32095491990fbdc7cdf8b5e (patch)
tree782074e7597e09796a5307e1facaf4657cdd95e9 /scripts/kconfig/lkc_proto.h
parente0b42605e685a0833303e1d4dde277c99d9e17b5 (diff)
downloadop-kernel-dev-1278ebdbc3167883f32095491990fbdc7cdf8b5e.zip
op-kernel-dev-1278ebdbc3167883f32095491990fbdc7cdf8b5e.tar.gz
mconf/nconf: mark empty menus/menuconfigs different from non-empty ones
Submenus are sometimes empty and it would be nice if there is something that notifies us that we should not expect any content _before_ we enter a submenu. A new function menu_is_empty() was introduced and empty menus and menuconfigs are now marked by "----" as opposed to non-empty ones that are marked by "--->". This scheme was suggested by "Yann E. MORIN" <yann.morin.1998@free.fr>. Signed-off-by: Dirk Gouders <dirk@gouders.net> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'scripts/kconfig/lkc_proto.h')
-rw-r--r--scripts/kconfig/lkc_proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kconfig/lkc_proto.h b/scripts/kconfig/lkc_proto.h
index ef1a738..ecdb965 100644
--- a/scripts/kconfig/lkc_proto.h
+++ b/scripts/kconfig/lkc_proto.h
@@ -14,6 +14,7 @@ P(conf_set_message_callback, void,(void (*fn)(const char *fmt, va_list ap)));
/* menu.c */
P(rootmenu,struct menu,);
+P(menu_is_empty, bool, (struct menu *menu));
P(menu_is_visible, bool, (struct menu *menu));
P(menu_has_prompt, bool, (struct menu *menu));
P(menu_get_prompt,const char *,(struct menu *menu));
OpenPOWER on IntegriCloud