X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fformat.h;h=9478dcf4943cbe8aa4a19db7ea2636849bc5a52b;hb=d06d03dbf4babd3426818f23770e15058a6876c4;hp=43b38eed350b980641ca2f8f14bb8b63f507a8d5;hpb=a52d7f6a6dfe8c55b65eef0996b848873db39fe7;p=babeltrace.git diff --git a/include/babeltrace/format.h b/include/babeltrace/format.h index 43b38eed..9478dcf4 100644 --- a/include/babeltrace/format.h +++ b/include/babeltrace/format.h @@ -40,25 +40,13 @@ struct format { const struct type_class_integer *int_class, int64_t v); - uint64_t (*bitfield_unsigned_read)(struct stream_pos *pos, - const struct type_class_bitfield *bitfield_class); - int64_t (*bitfield_signed_read)(struct stream_pos *pos, - const struct type_class_bitfield *bitfield_class); - void (*bitfield_unsigned_write)(struct stream_pos *pos, - const struct type_class_bitfield *bitfield_class, - uint64_t v); - void (*bitfield_signed_write)(struct stream_pos *pos, - const struct type_class_bitfield *bitfield_class, - int64_t v); - - void (*float_copy)(struct stream_pos *destp, - const struct type_class_float *dest, - struct stream_pos *srcp, + void (*float_copy)(struct stream_pos *dest, + struct stream_pos *src, const struct type_class_float *src); double (*double_read)(struct stream_pos *pos, - const struct type_class_float *src); + const struct type_class_float *float_class); void (*double_write)(struct stream_pos *pos, - const struct type_class_float *dest, + const struct type_class_float *float_class, double v); void (*string_copy)(struct stream_pos *dest, struct stream_pos *src, @@ -74,7 +62,18 @@ struct format { void (*enum_write)(struct stream_pos *pos, const struct type_class_enum *dest, GQuark q); - + void (*struct_begin)(struct stream_pos *pos, + const struct type_class_struct *struct_class); + void (*struct_end)(struct stream_pos *pos, + const struct type_class_struct *struct_class); + void (*array_begin)(struct stream_pos *pos, + const struct type_class_array *array_class); + void (*array_end)(struct stream_pos *pos, + const struct type_class_array *array_class); + void (*sequence_begin)(struct stream_pos *pos, + const struct type_class_sequence *sequence_class); + void (*sequence_end)(struct stream_pos *pos, + const struct type_class_sequence *sequence_class); }; struct format *bt_lookup_format(GQuark qname);