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:
Soren Sandmann
2006-08-26 16:44:17 +00:00
committed by Søren Sandmann Pedersen
parent 62c86a1951
commit b569c3a34c
3 changed files with 132 additions and 49 deletions

View File

@ -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,