From 4b2da5f09521bc6d8e421f865fb07e4772664c70 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Thu, 24 Nov 2016 16:44:39 -0500 Subject: [PATCH] bt_ctf_field_type_get_byte_order(): support enum FT MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- formats/ctf/ir/field-types.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 = -- 2.34.1