mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
30 lines
633 B
C
30 lines
633 B
C
#ifndef BIN_FILE_H
|
|
#define BIN_FILE_H
|
|
|
|
#include <glib.h>
|
|
|
|
typedef struct BinFile BinFile;
|
|
typedef struct Symbol Symbol;
|
|
|
|
/* Binary File */
|
|
|
|
BinFile * bin_file_new (const char *filename);
|
|
void bin_file_free (BinFile *bin_file);
|
|
const Symbol *bin_file_lookup_symbol (BinFile *bin_file,
|
|
gulong address);
|
|
|
|
/* Symbol */
|
|
struct Symbol
|
|
{
|
|
char * name;
|
|
gulong address;
|
|
};
|
|
|
|
Symbol * symbol_copy (const Symbol *orig);
|
|
gboolean symbol_equal (const void *syma,
|
|
const void *symb);
|
|
guint symbol_hash (const void *sym);
|
|
void symbol_free (Symbol *symbol);
|
|
|
|
#endif
|