Formatting fixes in header files

This commit is contained in:
Søren Sandmann Pedersen
2006-08-26 23:10:10 +00:00
parent e44c9a0167
commit 2c04f6e200
6 changed files with 82 additions and 76 deletions

View File

@ -1,3 +1,7 @@
Sat Aug 26 19:05:51 2006 Søren Sandmann <sandmann@redhat.com>
* Formatting fixes in header files.
2006-08-26 Soren Sandmann <sandmann@daimi.au.dk>
* elfparser.c: Update to new API

View File

@ -37,8 +37,6 @@ void bin_file_free (BinFile *bin_file);
const BinSymbol *bin_file_lookup_symbol (BinFile *bin_file,
gulong address);
ino_t bin_file_get_inode (BinFile *bin_file);
const char * bin_symbol_get_name (BinFile *bin_file,
const BinSymbol *symbol);

View File

@ -6,7 +6,7 @@ typedef struct BinParser BinParser;
typedef struct BinRecord BinRecord;
/* BinParser */
BinParser *bin_parser_new (const guchar *data,
BinParser * bin_parser_new (const guchar *data,
gsize length);
const guchar *bin_parser_get_data (BinParser *parser);
gsize bin_parser_get_length (BinParser *parser);
@ -15,11 +15,11 @@ void bin_parser_align (BinParser *parser,
gsize byte_width);
void bin_parser_goto (BinParser *parser,
gsize offset);
const char *bin_parser_get_string (BinParser *parser);
const char * bin_parser_get_string (BinParser *parser);
guint32 bin_parser_get_uint32 (BinParser *parser);
/* Record */
BinRecord *bin_parser_get_record (BinParser *parser,
BinRecord * bin_parser_get_record (BinParser *parser,
BinFormat *format,
gsize offset);
void bin_record_free (BinRecord *record);
@ -31,11 +31,13 @@ gsize bin_record_get_offset (BinRecord *record);
const gchar *bin_record_get_string_indirect (BinRecord *record,
const char *name,
gsize str_table);
BinParser *bin_record_get_parser (BinRecord *record);
BinParser * bin_record_get_parser (BinRecord *record);
/* BinFormat */
BinFormat *bin_format_new (gboolean big_endian,
const char *name, BinField *field,
const char *name,
BinField *field,
...);
gsize bin_format_get_size (BinFormat *format);

View File

@ -40,5 +40,4 @@ gboolean collector_start (Collector *collector,
void collector_stop (Collector *collector);
void collector_reset (Collector *collector);
int collector_get_n_samples (Collector *collector);
Profile * collector_create_profile (Collector *collector);

View File

@ -3,10 +3,12 @@
typedef struct ElfSym ElfSym;
typedef struct ElfParser ElfParser;
ElfParser *elf_parser_new (const char *filename,
ElfParser * elf_parser_new (const char *filename,
GError **err);
void elf_parser_free (ElfParser *parser);
const char *elf_parser_get_debug_link (ElfParser *parser, guint32 *crc32);
const char *elf_parser_get_debug_link (ElfParser *parser,
guint32 *crc32);
/* Lookup a symbol in the file.
*

View File

@ -70,4 +70,5 @@ StackNode *stack_stash_get_root (StackStash *stash);
StackStash *stack_stash_ref (StackStash *stash);
void stack_stash_unref (StackStash *stash);
#endif