1 |
/* dl.h - types and prototypes for loadable module support */ |
/* dl.h - types and prototypes for loadable module support */ |
2 |
/* |
/* |
3 |
* GRUB -- GRand Unified Bootloader |
* GRUB -- GRand Unified Bootloader |
4 |
* Copyright (C) 2002, 2004 Free Software Foundation, Inc. |
* Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. |
5 |
* |
* |
6 |
* GRUB is free software; you can redistribute it and/or modify |
* GRUB is free software; you can redistribute it and/or modify |
7 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
70 |
}; |
}; |
71 |
typedef struct grub_dl *grub_dl_t; |
typedef struct grub_dl *grub_dl_t; |
72 |
|
|
73 |
|
grub_err_t EXPORT_FUNC(grub_dl_check_header) (void *ehdr, grub_size_t size); |
74 |
grub_dl_t EXPORT_FUNC(grub_dl_load_file) (const char *filename); |
grub_dl_t EXPORT_FUNC(grub_dl_load_file) (const char *filename); |
75 |
grub_dl_t EXPORT_FUNC(grub_dl_load) (const char *name); |
grub_dl_t EXPORT_FUNC(grub_dl_load) (const char *name); |
76 |
grub_dl_t grub_dl_load_core (void *addr, grub_size_t size); |
grub_dl_t grub_dl_load_core (void *addr, grub_size_t size); |
85 |
grub_dl_t mod); |
grub_dl_t mod); |
86 |
void *EXPORT_FUNC(grub_dl_resolve_symbol) (const char *name); |
void *EXPORT_FUNC(grub_dl_resolve_symbol) (const char *name); |
87 |
|
|
88 |
int grub_arch_dl_check_header (void *ehdr, grub_size_t size); |
grub_err_t grub_arch_dl_check_header (void *ehdr); |
89 |
grub_err_t grub_arch_dl_relocate_symbols (grub_dl_t mod, void *ehdr); |
grub_err_t grub_arch_dl_relocate_symbols (grub_dl_t mod, void *ehdr); |
90 |
|
|
91 |
#endif /* ! GRUB_DL_H */ |
#endif /* ! GRUB_DL_H */ |