diff options
author | Soren Sandmann <sandmann@redhat.com> | 2006-08-20 06:26:54 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2006-08-20 06:26:54 +0000 |
commit | 49e1fabe463069567ec788070d1fab283f9282ef (patch) | |
tree | c75985219a60ff82f4584de07340b7c887d46249 /binparser.c | |
parent | 6c7afad3ff9fb75a234a72591931d0e124771f07 (diff) |
Read the name out of the file instead of out of the struct.
2006-08-20 Soren Sandmann <sandmann@redhat.com>
* elfparser.c (elf_sym_get_name): Read the name out of the file
instead of out of the struct.
* elfparser.c (struct ElfSym): Store an offset instead of the
name.
* elfparser.c (all_elf_parsers): Keep track of all elf parsers
created.
Diffstat (limited to 'binparser.c')
-rw-r--r-- | binparser.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/binparser.c b/binparser.c index 5c70e97..6527323 100644 --- a/binparser.c +++ b/binparser.c @@ -324,6 +324,15 @@ bin_parser_index (BinParser *parser, parser->frame->index = index; } +gsize +bin_parser_get_offset (BinParser *parser) +{ + g_return_val_if_fail (parser != NULL, 0); + g_return_val_if_fail (parser->frame != NULL, 0); + + return parser->frame->offset; +} + BinField * bin_field_new_fixed_array (int n_elements, int element_size) |