mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
Formatting fixes in header files
This commit is contained in:
@ -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>
|
2006-08-26 Soren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
* elfparser.c: Update to new API
|
* elfparser.c: Update to new API
|
||||||
|
|||||||
@ -37,8 +37,6 @@ void bin_file_free (BinFile *bin_file);
|
|||||||
const BinSymbol *bin_file_lookup_symbol (BinFile *bin_file,
|
const BinSymbol *bin_file_lookup_symbol (BinFile *bin_file,
|
||||||
gulong address);
|
gulong address);
|
||||||
ino_t bin_file_get_inode (BinFile *bin_file);
|
ino_t bin_file_get_inode (BinFile *bin_file);
|
||||||
|
|
||||||
|
|
||||||
const char * bin_symbol_get_name (BinFile *bin_file,
|
const char * bin_symbol_get_name (BinFile *bin_file,
|
||||||
const BinSymbol *symbol);
|
const BinSymbol *symbol);
|
||||||
|
|
||||||
|
|||||||
12
binparser.h
12
binparser.h
@ -6,7 +6,7 @@ typedef struct BinParser BinParser;
|
|||||||
typedef struct BinRecord BinRecord;
|
typedef struct BinRecord BinRecord;
|
||||||
|
|
||||||
/* BinParser */
|
/* BinParser */
|
||||||
BinParser *bin_parser_new (const guchar *data,
|
BinParser * bin_parser_new (const guchar *data,
|
||||||
gsize length);
|
gsize length);
|
||||||
const guchar *bin_parser_get_data (BinParser *parser);
|
const guchar *bin_parser_get_data (BinParser *parser);
|
||||||
gsize bin_parser_get_length (BinParser *parser);
|
gsize bin_parser_get_length (BinParser *parser);
|
||||||
@ -15,11 +15,11 @@ void bin_parser_align (BinParser *parser,
|
|||||||
gsize byte_width);
|
gsize byte_width);
|
||||||
void bin_parser_goto (BinParser *parser,
|
void bin_parser_goto (BinParser *parser,
|
||||||
gsize offset);
|
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);
|
guint32 bin_parser_get_uint32 (BinParser *parser);
|
||||||
|
|
||||||
/* Record */
|
/* Record */
|
||||||
BinRecord *bin_parser_get_record (BinParser *parser,
|
BinRecord * bin_parser_get_record (BinParser *parser,
|
||||||
BinFormat *format,
|
BinFormat *format,
|
||||||
gsize offset);
|
gsize offset);
|
||||||
void bin_record_free (BinRecord *record);
|
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 gchar *bin_record_get_string_indirect (BinRecord *record,
|
||||||
const char *name,
|
const char *name,
|
||||||
gsize str_table);
|
gsize str_table);
|
||||||
BinParser *bin_record_get_parser (BinRecord *record);
|
BinParser * bin_record_get_parser (BinRecord *record);
|
||||||
|
|
||||||
|
|
||||||
/* BinFormat */
|
/* BinFormat */
|
||||||
BinFormat *bin_format_new (gboolean big_endian,
|
BinFormat *bin_format_new (gboolean big_endian,
|
||||||
const char *name, BinField *field,
|
const char *name,
|
||||||
|
BinField *field,
|
||||||
...);
|
...);
|
||||||
gsize bin_format_get_size (BinFormat *format);
|
gsize bin_format_get_size (BinFormat *format);
|
||||||
|
|
||||||
|
|||||||
@ -40,5 +40,4 @@ gboolean collector_start (Collector *collector,
|
|||||||
void collector_stop (Collector *collector);
|
void collector_stop (Collector *collector);
|
||||||
void collector_reset (Collector *collector);
|
void collector_reset (Collector *collector);
|
||||||
int collector_get_n_samples (Collector *collector);
|
int collector_get_n_samples (Collector *collector);
|
||||||
|
|
||||||
Profile * collector_create_profile (Collector *collector);
|
Profile * collector_create_profile (Collector *collector);
|
||||||
|
|||||||
@ -3,10 +3,12 @@
|
|||||||
typedef struct ElfSym ElfSym;
|
typedef struct ElfSym ElfSym;
|
||||||
typedef struct ElfParser ElfParser;
|
typedef struct ElfParser ElfParser;
|
||||||
|
|
||||||
ElfParser *elf_parser_new (const char *filename,
|
ElfParser * elf_parser_new (const char *filename,
|
||||||
GError **err);
|
GError **err);
|
||||||
void elf_parser_free (ElfParser *parser);
|
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.
|
/* Lookup a symbol in the file.
|
||||||
*
|
*
|
||||||
|
|||||||
@ -70,4 +70,5 @@ StackNode *stack_stash_get_root (StackStash *stash);
|
|||||||
StackStash *stack_stash_ref (StackStash *stash);
|
StackStash *stack_stash_ref (StackStash *stash);
|
||||||
void stack_stash_unref (StackStash *stash);
|
void stack_stash_unref (StackStash *stash);
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user