X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Ftypes.h;h=3c66563f075822da814e5359ae1687c77981f608;hp=862624084371ecfcf1d1692f7fe10762136ed5b5;hb=11d43b909baeee566511acfec577d4605386fa09;hpb=a52d7f6a6dfe8c55b65eef0996b848873db39fe7 diff --git a/include/babeltrace/types.h b/include/babeltrace/types.h index 86262408..3c66563f 100644 --- a/include/babeltrace/types.h +++ b/include/babeltrace/types.h @@ -111,6 +111,7 @@ struct type_class_bitfield { struct type_class_float { struct type_class p; + struct bitfield_class *sign; struct bitfield_class *mantissa; struct bitfield_class *exp; int byte_order; @@ -142,17 +143,21 @@ int ctf_register_type(struct type_class *type_class); /* Nameless types can be created by passing a NULL name */ struct type_class_integer *integer_type_new(const char *name, - size_t start_offset, size_t len, int byte_order, - int signedness); + int signedness, + size_t alignment); void integer_type_free(struct type_class_integer *int_class); struct type_class_bitfield *bitfield_type_new(const char *name, - size_t start_offset, size_t len, int byte_order, - int signedness); + int signedness, + size_t alignment); void bitfield_type_free(struct type_class_bitfield *bitfield_class); +/* + * mantissa_len is the length of the number of bytes represented by the mantissa + * (e.g. result of DBL_MANT_DIG). It includes the leading 1. + */ struct type_class_float *float_type_new(const char *name, size_t mantissa_len, size_t exp_len, int byte_order, @@ -175,7 +180,6 @@ void enum_unsigned_insert(struct type_class_enum *enum_class, uint64_t v, GQuark q); struct type_class_enum *enum_type_new(const char *name, - size_t start_offset, size_t len, int byte_order, int signedness, size_t alignment);