bt_ctf_field_type_get_byte_order(): support enum FT
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 24 Nov 2016 21:44:39 +0000 (16:44 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 18:09:07 +0000 (14:09 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/field-types.c

index 7f324c9a47b5c25f5a107e8e4bbf2bdf92e27392..c9c424ea76a3e901c80453a06a780ab919f952f6 100644 (file)
@@ -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 =
This page took 0.02645 seconds and 4 git commands to generate.