diff --git a/ChangeLog b/ChangeLog index b8de03fe..2752a680 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Aug 26 19:05:51 2006 Søren Sandmann + + * Formatting fixes in header files. + 2006-08-26 Soren Sandmann * elfparser.c: Update to new API diff --git a/binfile.h b/binfile.h index 0dcb56cf..c9f012fe 100644 --- a/binfile.h +++ b/binfile.h @@ -32,14 +32,12 @@ typedef struct BinSymbol BinSymbol; /* Binary File */ -BinFile * bin_file_new (const char *filename); -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); +BinFile * bin_file_new (const char *filename); +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); #endif diff --git a/binparser.h b/binparser.h index 84df506c..b4d4d332 100644 --- a/binparser.h +++ b/binparser.h @@ -6,43 +6,45 @@ typedef struct BinParser BinParser; typedef struct BinRecord BinRecord; /* BinParser */ -BinParser *bin_parser_new (const guchar *data, - gsize length); -const guchar *bin_parser_get_data (BinParser *parser); -gsize bin_parser_get_length (BinParser *parser); -gsize bin_parser_get_offset (BinParser *parser); -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); -guint32 bin_parser_get_uint32 (BinParser *parser); +BinParser * bin_parser_new (const guchar *data, + gsize length); +const guchar *bin_parser_get_data (BinParser *parser); +gsize bin_parser_get_length (BinParser *parser); +gsize bin_parser_get_offset (BinParser *parser); +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); +guint32 bin_parser_get_uint32 (BinParser *parser); /* Record */ -BinRecord *bin_parser_get_record (BinParser *parser, - BinFormat *format, - gsize offset); -void bin_record_free (BinRecord *record); -guint64 bin_record_get_uint (BinRecord *record, - const char *name); -void bin_record_index (BinRecord *record, - int index); -gsize bin_record_get_offset (BinRecord *record); -const gchar *bin_record_get_string_indirect (BinRecord *record, +BinRecord * bin_parser_get_record (BinParser *parser, + BinFormat *format, + gsize offset); +void bin_record_free (BinRecord *record); +guint64 bin_record_get_uint (BinRecord *record, + const char *name); +void bin_record_index (BinRecord *record, + int index); +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); + gsize str_table); +BinParser * bin_record_get_parser (BinRecord *record); + /* BinFormat */ -BinFormat *bin_format_new (gboolean big_endian, - const char *name, BinField *field, - ...); -gsize bin_format_get_size (BinFormat *format); +BinFormat *bin_format_new (gboolean big_endian, + const char *name, + BinField *field, + ...); +gsize bin_format_get_size (BinFormat *format); /* BinField */ -BinField *bin_field_new_uint8 (void); -BinField *bin_field_new_uint16 (void); -BinField *bin_field_new_uint32 (void); -BinField *bin_field_new_uint64 (void); -BinField *bin_field_new_fixed_array (int n_elements, - int element_size); +BinField *bin_field_new_uint8 (void); +BinField *bin_field_new_uint16 (void); +BinField *bin_field_new_uint32 (void); +BinField *bin_field_new_uint64 (void); +BinField *bin_field_new_fixed_array (int n_elements, + int element_size); diff --git a/collector.h b/collector.h index b1d1e615..d7797233 100644 --- a/collector.h +++ b/collector.h @@ -33,12 +33,11 @@ typedef enum } CollectorError; /* callback is called whenever a new sample arrives */ -Collector *collector_new (CollectorFunc callback, - gpointer data); -gboolean collector_start (Collector *collector, - GError **err); -void collector_stop (Collector *collector); -void collector_reset (Collector *collector); -int collector_get_n_samples (Collector *collector); - -Profile * collector_create_profile (Collector *collector); +Collector *collector_new (CollectorFunc callback, + gpointer data); +gboolean collector_start (Collector *collector, + GError **err); +void collector_stop (Collector *collector); +void collector_reset (Collector *collector); +int collector_get_n_samples (Collector *collector); +Profile * collector_create_profile (Collector *collector); diff --git a/elfparser.h b/elfparser.h index f1f7e594..7a05a35d 100644 --- a/elfparser.h +++ b/elfparser.h @@ -3,10 +3,12 @@ typedef struct ElfSym ElfSym; typedef struct ElfParser ElfParser; -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); +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); + /* Lookup a symbol in the file. * diff --git a/stackstash.h b/stackstash.h index 6ea5ee43..30b9b778 100644 --- a/stackstash.h +++ b/stackstash.h @@ -48,26 +48,27 @@ typedef void (* StackNodeFunc) (StackNode *node, gpointer data); /* Stach */ -StackStash *stack_stash_new (GDestroyNotify destroy); -StackStash *stack_stash_new_from_root (StackNode *root, - GDestroyNotify destroy); -void stack_stash_add_trace (StackStash *stash, - gulong *addrs, - gint n_addrs, - int size); -void stack_stash_foreach (StackStash *stash, - StackFunction stack_func, - gpointer data); -void stack_node_foreach_trace (StackNode *node, - StackFunction stack_func, - gpointer data); -StackNode *stack_stash_find_node (StackStash *stash, - gpointer address); -void stack_stash_foreach_by_address (StackStash *stash, - StackNodeFunc func, - gpointer data); -StackNode *stack_stash_get_root (StackStash *stash); -StackStash *stack_stash_ref (StackStash *stash); -void stack_stash_unref (StackStash *stash); +StackStash *stack_stash_new (GDestroyNotify destroy); +StackStash *stack_stash_new_from_root (StackNode *root, + GDestroyNotify destroy); +void stack_stash_add_trace (StackStash *stash, + gulong *addrs, + gint n_addrs, + int size); +void stack_stash_foreach (StackStash *stash, + StackFunction stack_func, + gpointer data); +void stack_node_foreach_trace (StackNode *node, + StackFunction stack_func, + gpointer data); +StackNode *stack_stash_find_node (StackStash *stash, + gpointer address); +void stack_stash_foreach_by_address (StackStash *stash, + StackNodeFunc func, + gpointer data); +StackNode *stack_stash_get_root (StackStash *stash); +StackStash *stack_stash_ref (StackStash *stash); +void stack_stash_unref (StackStash *stash); + #endif