23 lines
427 B
C
23 lines
427 B
C
#ifndef SYMBOLS_H_
|
|
#define SYMBOLS_H_
|
|
|
|
#include <link.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
char **names;
|
|
void **addresses;
|
|
size_t count;
|
|
size_t capacity;
|
|
} SymbolInfos;
|
|
|
|
typedef enum { CREATE_SUCCESS = 0, CREATE_FAILED } CreateResult;
|
|
|
|
struct dl_phdr_info;
|
|
|
|
CreateResult he_create_symbol_info(SymbolInfos *, struct dl_phdr_info *);
|
|
void he_free_symbol_info(SymbolInfos *);
|
|
|
|
#endif // SYMBOLS_H_
|