mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Add new bin_record() functions Implement them.
2006-08-26 Soren Sandmann <sandmann@daimi.au.dk> * binparser.h: Add new bin_record() functions * binparser.c: Implement them.
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
62c86a1951
commit
b569c3a34c
11
binparser.h
11
binparser.h
@ -3,6 +3,7 @@
|
||||
typedef struct BinField BinField;
|
||||
typedef struct BinFormat BinFormat;
|
||||
typedef struct BinParser BinParser;
|
||||
typedef struct BinRecord BinRecord;
|
||||
|
||||
/* BinParser */
|
||||
BinParser *bin_parser_new (const guchar *data,
|
||||
@ -19,6 +20,16 @@ const char *bin_parser_get_string (BinParser *parser);
|
||||
guint64 bin_parser_get_uint (BinParser *parser,
|
||||
const gchar *name);
|
||||
|
||||
/* 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);
|
||||
|
||||
/* BinFormat */
|
||||
BinFormat *bin_format_new (gboolean big_endian,
|
||||
const char *name, BinField *field,
|
||||
|
||||
Reference in New Issue
Block a user