libsym.h
286 Bytes
#ifndef __lib_sym_h__
#define __lib_sym_h__
#include <elf.h>
/* scanning function */
typedef int (*scanf_t)(const Elf32_Sym* sym, const char* name, void* ctx);
/* iterate function scf over file passing in context ctx */
int sym_scan(const char* file, scanf_t scf, void* ctx);
#endif