From: Philippe Proulx Date: Thu, 24 Nov 2016 21:44:39 +0000 (-0500) Subject: bt_ctf_field_type_get_byte_order(): support enum FT X-Git-Tag: v2.0.0-pre1~644 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=4b2da5f09521bc6d8e421f865fb07e4772664c70 bt_ctf_field_type_get_byte_order(): support enum FT Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/formats/ctf/ir/field-types.c b/formats/ctf/ir/field-types.c index 7f324c9a..c9c424ea 100644 --- a/formats/ctf/ir/field-types.c +++ b/formats/ctf/ir/field-types.c @@ -2150,6 +2150,13 @@ enum bt_ctf_byte_order bt_ctf_field_type_get_byte_order( ret = integer->user_byte_order; break; } + case BT_CTF_TYPE_ID_ENUM: + { + struct bt_ctf_field_type_enumeration *enum_ft = container_of( + type, struct bt_ctf_field_type_enumeration, parent); + ret = bt_ctf_field_type_get_byte_order(enum_ft->container); + break; + } case BT_CTF_TYPE_ID_FLOAT: { struct bt_ctf_field_type_floating_point *floating_point =