Remove nested functions from ELF iterators.
This commit is contained in:
parent
25239370fd
commit
6c724b85b4
4 changed files with 227 additions and 181 deletions
|
@ -41,6 +41,11 @@ typedef grub_err_t (*grub_elf32_load_hook_t)
|
|||
typedef grub_err_t (*grub_elf64_load_hook_t)
|
||||
(Elf64_Phdr *phdr, grub_addr_t *addr, int *load);
|
||||
|
||||
typedef int (*grub_elf32_phdr_iterate_hook_t)
|
||||
(grub_elf_t elf, Elf32_Phdr *phdr, void *arg);
|
||||
typedef int (*grub_elf64_phdr_iterate_hook_t)
|
||||
(grub_elf_t elf, Elf64_Phdr *phdr, void *arg);
|
||||
|
||||
grub_elf_t grub_elf_open (const char *);
|
||||
grub_elf_t grub_elf_file (grub_file_t file, const char *filename);
|
||||
grub_err_t grub_elf_close (grub_elf_t);
|
||||
|
@ -63,12 +68,10 @@ grub_err_t grub_elf64_load (grub_elf_t, const char *filename,
|
|||
grub_err_t
|
||||
grub_elf32_phdr_iterate (grub_elf_t elf,
|
||||
const char *filename,
|
||||
int NESTED_FUNC_ATTR (*hook) (grub_elf_t, Elf32_Phdr *, void *),
|
||||
void *hook_arg);
|
||||
grub_elf32_phdr_iterate_hook_t hook, void *hook_arg);
|
||||
grub_err_t
|
||||
grub_elf64_phdr_iterate (grub_elf_t elf,
|
||||
const char *filename,
|
||||
int NESTED_FUNC_ATTR (*hook) (grub_elf_t, Elf64_Phdr *, void *),
|
||||
void *hook_arg);
|
||||
grub_elf64_phdr_iterate_hook_t hook, void *hook_arg);
|
||||
|
||||
#endif /* ! GRUB_ELFLOAD_HEADER */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue