mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-27 01:29:27 +00:00
Remove nested functions from ELF iterators.
This commit is contained in:
1 parent
25239370fd
commit
6c724b85b4
4 files changed
+227
-181
No files matched your search
@@ -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 */
|
||||
Reference in new issue
Block a user