mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 07:00:53 +00:00
Initial revision
This commit is contained in:
29
binfile.h
Normal file
29
binfile.h
Normal file
@ -0,0 +1,29 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user