X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fformat.h;h=5909ce39f0bf3599ea720829d15cf3f050a449ff;hb=7fe001942cc8ece60d945cbfbd1d135ff548dc7d;hp=1a847846b6dc659e63459b49afdbfedd447267db;hpb=bed864a75d2315c344a6e625db66ae9bfbc51e27;p=babeltrace.git diff --git a/include/babeltrace/format.h b/include/babeltrace/format.h index 1a847846..5909ce39 100644 --- a/include/babeltrace/format.h +++ b/include/babeltrace/format.h @@ -40,29 +40,22 @@ 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, const struct type_class_string *string_class); + void (*string_read)(unsigned char **dest, struct stream_pos *src, + const struct type_class_string *string_class); + void (*string_write)(struct stream_pos *dest, const unsigned char *src, + const struct type_class_string *string_class); + void (*string_free_temp)(unsigned char *string); GQuark (*enum_read)(struct stream_pos *pos, const struct type_class_enum *src);