9
0
Fork 0
barebox/include
Sascha Hauer 0d35c3c8a0 menu: simplify usage for clients
Clients now only have to call menu_add_submenu or menu_add_command_entry
instead of allocating many strings.
This also fixes some problems in the menu code. The priv field in struct
menu_entry was a pointer to struct menu or a pointer to an allocated string.
It was never freed, only had to be freed when it was an allocated string.
The reference to a submenu is now kept as a string and not to the menu
itself. The code checked the existence of the submenu when creating it, but
crashed when the submenu was removed and referenced afterwards. Now the
code hapily allows references to nonexistant menus but complains during
runtime when the menu is not there.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-08-30 21:06:02 +02:00
..
asm-generic initcall: add postconsole_initcall 2010-08-30 20:46:54 +02:00
cramfs [cramfs] fix compiler warning about undefined __LITTLE_ENDIAN 2008-04-07 12:19:36 +02:00
i2c add twl4030 support 2010-08-06 19:17:06 +02:00
linux move include/unaligned to include/linux/unaligned/ 2010-08-30 14:36:08 +02:00
mtd barebox ubi changes 2010-07-05 15:07:14 +02:00
spi documentation updates 2009-12-15 11:32:02 +01:00
usb net: rework the mii support 2010-08-27 14:36:03 +02:00
.gitignore rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
ata.h Start to add ATA support to barebox 2010-01-14 10:06:16 +01:00
bmp_layout.h framebuffer: Add bmp command to show bmp files 2009-07-31 15:08:49 +02:00
boot.h list: remove duplicated list.h 2009-11-03 09:48:53 +01:00
bzlib.h rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
cache.h correct warning 2008-12-18 14:20:08 +01:00
clock.h clock.h: use types.h not linux/types.h 2009-12-03 11:12:36 +01:00
command.h remove typedef cmd_tbl_t and replace it with struct command 2010-02-01 17:25:32 +01:00
common.h add WARN_ON and WARN support 2010-08-30 14:36:07 +02:00
complete.h list: remove duplicated list.h 2009-11-03 09:48:53 +01:00
console.h rework device parameters 2010-06-17 08:28:25 +02:00
crc.h Some code cleanup 2006-04-16 10:51:58 +02:00
debug_ll.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2009-10-22 14:21:25 +02:00
dm9000.h dm9000: allow to specify that no srom is present 2010-08-23 11:20:21 +08:00
driver.h use resource_size_t for device resources 2010-08-27 14:25:19 +02:00
elf.h replace elf.h with the one from the linux kernel. It does not have powerpc 2007-09-28 19:59:12 +02:00
envfs.h rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
environment.h rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
errno.h add strerror function 2009-05-25 16:52:35 +02:00
fb.h fb: add a usage counter to prevent double enable/disable 2010-06-24 11:37:40 +02:00
fcntl.h rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
fec.h fec imx27: Add RMII support 2009-02-20 18:25:24 +01:00
fnmatch.h add globbing support 2008-03-09 22:35:38 +01:00
fs.h fs: replace broken dev_protect with protect_file function 2009-10-02 15:23:22 +02:00
ft_build.h rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
getopt.h svn_rev_282 2007-07-05 18:01:39 +02:00
glob.h hardcode _FILE_OFFSET_BITS to 32 2008-06-03 13:34:45 +02:00
gpio.h GPIO support 2008-10-27 17:29:57 +01:00
image.h rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
init.h initcall: add postconsole_initcall 2010-08-30 20:46:54 +02:00
ioctl.h add basic at91sam9260 support. Currently only second stage 2008-06-06 09:30:32 +02:00
ioports.h Code cleanup. 2006-11-30 18:02:20 +01:00
kallsyms.h add kallsyms from linux kernel 2007-09-28 20:29:52 +02:00
keyboard.h [Strange. I _did_ check these in before. Seems SF restored an old 2004-01-16 00:30:56 +00:00
kfifo.h add kernel kfifo implementation 2007-09-21 21:29:32 +02:00
kgdb.h Initial revision 2002-08-27 10:38:37 +00:00
libbb.h add process_escape_sequence function 2010-03-30 14:14:58 +02:00
libgen.h move dirname() and basename() to lib/libgen.c and add header file 2007-09-24 16:57:12 +02:00
lzo.h add unlzo support 2010-03-30 14:14:58 +02:00
malloc.h Use nowadays function prototypes 2009-12-10 13:09:02 +01:00
mem_malloc.h Combine memory initialization with the main memory functions. 2009-12-10 13:09:02 +01:00
menu.h menu: simplify usage for clients 2010-08-30 21:06:02 +02:00
miidev.h net: rework the mii support 2010-08-27 14:36:03 +02:00
module.h module: move EXPORT_SYMBOL_GPL define to module.h 2010-08-30 14:36:09 +02:00
nand.h nand: ground dev_add_bb_dev if nand is disabled 2009-11-23 10:55:56 +01:00
net.h net: implement random_ether_addr 2010-06-22 15:44:44 +02:00
notifier.h Add notifier framework 2009-05-13 16:00:11 +02:00
ns16550.h 009-add-NS16550 2008-06-05 19:45:21 +02:00
param.h rework device parameters 2010-06-17 08:28:25 +02:00
part.h rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
partition.h introduce cdev 2009-07-21 16:41:44 +02:00
progress.h add progression bar function 2010-06-28 10:43:55 +02:00
readkey.h Add Menu Framework 2010-08-30 20:57:20 +02:00
reloc.h rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
rtc.h Initial revision 2001-04-09 21:43:07 +00:00
s_record.h Initial revision 2001-04-28 17:59:11 +00:00
sizes.h svn_rev_082 2007-07-05 18:01:21 +02:00
stdio.h string: add strlcpy support 2010-08-06 19:09:38 +02:00
stdlib.h include support for a simple pseudo number generator 2010-06-22 15:44:44 +02:00
string.h add protection from double inclusion in string.h 2008-03-31 21:55:34 +02:00
stringlist.h list: remove duplicated list.h 2009-11-03 09:48:53 +01:00
types.h add __[lb]e types 2009-04-06 11:12:54 +02:00
ubi-media.h documentation updates 2009-12-15 11:32:02 +01:00
usb_dfu_trailer.h rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
watchdog.h Cleanup (PPC4xx is AMCC now) 2005-09-23 11:05:55 +02:00
xfuncs.h xfuncs.h: include linux/types.h to avoid non decleration of size_t 2010-08-27 14:25:18 +02:00
xyzModem.h stddef: introduce true/false enum 2010-08-06 19:12:07 +02:00
zlib.h * Code cleanup: 2003-06-27 21:31:46 +00:00