diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2008-06-19 08:11:43 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2008-06-19 08:11:43 +0000 |
commit | 1b6f2e0f4c8445100f1ea6bea5b89db15dba0175 (patch) | |
tree | 47203e44f22361896d63103608f32c2d8ba87e13 /package/config/menu.c | |
parent | 2c2796719afce7b7a64fa1dd0bec736b10e371da (diff) |
package/config: rebase from upstream (2.6.23.14)
From Bernhards tree (2737cfdd)
Diffstat (limited to 'package/config/menu.c')
-rw-r--r-- | package/config/menu.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/package/config/menu.c b/package/config/menu.c index f14aeac67..f9d0d91a3 100644 --- a/package/config/menu.c +++ b/package/config/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 ""; +} |