Remove nested functions from filesystem directory iterators.
* include/grub/fs.h (grub_fs_dir_hook_t): New type. (struct grub_fs.dir): Add hook_data argument. Update all implementations and callers.
This commit is contained in:
parent
53d3e4e3df
commit
fc524edf65
35 changed files with 1723 additions and 1451 deletions
|
@ -1253,8 +1253,8 @@ grub_net_open_real (const char *name)
|
|||
|
||||
static grub_err_t
|
||||
grub_net_fs_dir (grub_device_t device, const char *path __attribute__ ((unused)),
|
||||
int (*hook) (const char *filename,
|
||||
const struct grub_dirhook_info *info) __attribute__ ((unused)))
|
||||
grub_fs_dir_hook_t hook __attribute__ ((unused)),
|
||||
void *hook_data __attribute__ ((unused)))
|
||||
{
|
||||
if (!device->net)
|
||||
return grub_error (GRUB_ERR_BUG, "invalid net device");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue