GEL  0.99
File Symbols

Typedefs

typedef __BEGIN_DECLS struct gel_sym_info_t gel_sym_info_t
 

Functions

int gel_sym_infos (gel_sym_t *s, gel_sym_info_t *smi)
 
gel_sym_tgel_sym_first (gel_sym_iter_t *iter, gel_file_t *file)
 
gel_sym_tgel_sym_next (gel_sym_iter_t *iter)
 

Detailed Description

#include <gel/sym.h>

This module allows to traverse the symbols of an executable file.

You can also obtains the symbol of the file as:

gel_sym_t *sym;
for(sym = gel_sym_first(&iter, file); sym; sym = gel_sym_next(&iter)) {
gel_sym_infos(sym, &info);
}
int gel_sym_infos(gel_sym_t *s, gel_sym_info_t *smi)
Definition: sym.c:56
gel_sym_t * gel_sym_first(gel_sym_iter_t *iter, gel_file_t *file)
Definition: sym.c:92
gel_sym_t * gel_sym_next(gel_sym_iter_t *iter)
Definition: sym.c:106
Definition: util.h:108
Definition: sym.h:29
struct gel_sym_s gel_sym_t
Definition: types.h:45

Typedef Documentation

◆ gel_sym_info_t

Structure to store information available for a symbol. Returned by gel_sym_infos().

Function Documentation

◆ gel_sym_first()

gel_sym_t* gel_sym_first ( gel_sym_iter_t iter,
gel_file_t file 
)

Get the first symbol of the file.

Parameters
iterIterator on file symbol.
fileFile to iterate on symbols.

◆ gel_sym_infos()

int gel_sym_infos ( gel_sym_t s,
gel_sym_info_t smi 
)

Get public information about a symbol. This information remains valid until the container file or image is deleted.

Parameters
sSymbol to get information for.
smiStructure to store symbol information in.
Returns
0 for success, -1 for failure (details in gel_errno)

◆ gel_sym_next()

gel_sym_t* gel_sym_next ( gel_sym_iter_t iter)

Go to the next symbol.

Parameters
iterSymbol iterator.