This commit is contained in:
2025-03-18 14:19:32 +02:00
parent db4b51ab2d
commit 97c5ff206a
4 changed files with 33 additions and 31 deletions

22
src/symbols.h Normal file
View File

@@ -0,0 +1,22 @@
#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 hi_create_symbol_info(SymbolInfos *, struct dl_phdr_info *);
void hi_free_symbol_info(SymbolInfos *);
#endif // SYMBOLS_H_