Changeset View
Changeset View
Standalone View
Standalone View
contrib/elftoolchain/libelf/_libelf.h
Show All 23 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $Id: _libelf.h 3174 2015-03-27 17:13:41Z emaste $ | * $Id: _libelf.h 3174 2015-03-27 17:13:41Z emaste $ | ||||
*/ | */ | ||||
#ifndef __LIBELF_H_ | #ifndef __LIBELF_H_ | ||||
#define __LIBELF_H_ | #define __LIBELF_H_ | ||||
#include <stdbool.h> | |||||
#include <sys/queue.h> | #include <sys/queue.h> | ||||
#include "_libelf_config.h" | #include "_libelf_config.h" | ||||
#include "_elftc.h" | #include "_elftc.h" | ||||
/* | /* | ||||
* Library-private data structures. | * Library-private data structures. | ||||
▲ Show 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | |||||
Elf *_libelf_open_object(int _fd, Elf_Cmd _c, int _reporterror); | Elf *_libelf_open_object(int _fd, Elf_Cmd _c, int _reporterror); | ||||
struct _Libelf_Data *_libelf_release_data(struct _Libelf_Data *_d); | struct _Libelf_Data *_libelf_release_data(struct _Libelf_Data *_d); | ||||
Elf *_libelf_release_elf(Elf *_e); | Elf *_libelf_release_elf(Elf *_e); | ||||
Elf_Scn *_libelf_release_scn(Elf_Scn *_s); | Elf_Scn *_libelf_release_scn(Elf_Scn *_s); | ||||
int _libelf_setphnum(Elf *_e, void *_eh, int _elfclass, size_t _phnum); | int _libelf_setphnum(Elf *_e, void *_eh, int _elfclass, size_t _phnum); | ||||
int _libelf_setshnum(Elf *_e, void *_eh, int _elfclass, size_t _shnum); | int _libelf_setshnum(Elf *_e, void *_eh, int _elfclass, size_t _shnum); | ||||
int _libelf_setshstrndx(Elf *_e, void *_eh, int _elfclass, | int _libelf_setshstrndx(Elf *_e, void *_eh, int _elfclass, | ||||
size_t _shstrndx); | size_t _shstrndx); | ||||
Elf_Data * _libelf_getdata(Elf_Scn *s, Elf_Data *ed, bool updating); | |||||
Elf_Data * _libelf_rawdata(Elf_Scn *s, Elf_Data *ed, bool updating); | |||||
Elf_Data *_libelf_xlate(Elf_Data *_d, const Elf_Data *_s, | Elf_Data *_libelf_xlate(Elf_Data *_d, const Elf_Data *_s, | ||||
unsigned int _encoding, int _elfclass, int _direction); | unsigned int _encoding, int _elfclass, int _direction); | ||||
int _libelf_xlate_shtype(uint32_t _sht); | int _libelf_xlate_shtype(uint32_t _sht); | ||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
} | } | ||||
#endif | #endif | ||||
#endif /* __LIBELF_H_ */ | #endif /* __LIBELF_H_ */ |