aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/menu.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2007-07-21 00:00:36 +0200
committerSam Ravnborg <sam@ravnborg.org>2007-07-25 21:14:26 +0200
commit03d29122738f0bd81afd44b1f566e64ebf8d06fe (patch)
tree10038c037b7b82577fec387fa6cd8042fc8633e7 /scripts/kconfig/menu.c
parent4a645d5ea65baaa5736bcb566673bf4a351b2ad8 (diff)
downloadkernel_samsung_aries-03d29122738f0bd81afd44b1f566e64ebf8d06fe.zip
kernel_samsung_aries-03d29122738f0bd81afd44b1f566e64ebf8d06fe.tar.gz
kernel_samsung_aries-03d29122738f0bd81afd44b1f566e64ebf8d06fe.tar.bz2
kconfig: attach help text to menus
Roman Zippel wrote: > A simple example would be > help texts, right now they are per symbol, but they should really be per > menu, so archs can provide different help texts for something. This patch does this and at the same time introduce a few API funtions used to access the help text. The relevant api functions are introduced in the various frontends. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Roman Zippel <zippel@linux-m68k.org>
Diffstat (limited to 'scripts/kconfig/menu.c')
-rw-r--r--scripts/kconfig/menu.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index f14aeac..f9d0d91 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -417,3 +417,15 @@ struct menu *menu_get_parent_menu(struct menu *menu)
return menu;
}
+bool menu_has_help(struct menu *menu)
+{
+ return menu->help != NULL;
+}
+
+const char *menu_get_help(struct menu *menu)
+{
+ if (menu->help)
+ return menu->help;
+ else
+ return "";
+}