Initial revision

This commit is contained in:
Søren Sandmann Pedersen
2004-04-27 11:08:55 +00:00
commit 43dddf31ac
22 changed files with 4128 additions and 0 deletions

29
binfile.h Normal file
View 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