blob: e9481808c36ee694b0489ab62a8ef497ae038ece (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef __ELFHANDLE_H__
#define __ELFHANDLE_H__
#include <libelf.h>
/*!
* A simple pair of a file descriptor and a libelf handle,
* used to simplify elfucli.
*/
typedef struct {
int fd; /*!< File handle */
Elf *e; /*!< libelf handle */
} ELFHandles;
void openElf(ELFHandles *h, char *fn, Elf_Cmd elfmode);
void closeElf(ELFHandles *h);
#endif
|