Remove nested functions from USB iterators.
authorColin Watson <cjwatson@ubuntu.com>
Mon, 21 Jan 2013 21:02:24 +0000 (21:02 +0000)
committerColin Watson <cjwatson@ubuntu.com>
Mon, 21 Jan 2013 21:02:24 +0000 (21:02 +0000)
commit5fdbaed168a1e5d7ebeb29b8044bc7e0f85af3f8
treed96901fb973f04af03b19b5be6c22e529324a7ce
parent18288f17ac1891e389ce034f182318de2aa0e983
Remove nested functions from USB iterators.

* include/grub/usb.h (grub_usb_iterate_hook_t): New type.
(grub_usb_controller_iterate_hook_t): Likewise.
(grub_usb_iterate): Add hook_data argument.
(grub_usb_controller_iterate): Likewise.
(struct grub_usb_controller_dev.iterate): Likewise.

Update all implementations and callers.
ChangeLog
grub-core/bus/usb/ehci.c
grub-core/bus/usb/emu/usb.c
grub-core/bus/usb/ohci.c
grub-core/bus/usb/uhci.c
grub-core/bus/usb/usb.c
grub-core/bus/usb/usbhub.c
grub-core/commands/usbtest.c
include/grub/usb.h