projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt_ctf_field_type_get_byte_order(): support enum FT
[babeltrace.git]
/
formats
/
ctf
/
ir
/
field-types.c
diff --git
a/formats/ctf/ir/field-types.c
b/formats/ctf/ir/field-types.c
index 7f324c9a47b5c25f5a107e8e4bbf2bdf92e27392..c9c424ea76a3e901c80453a06a780ab919f952f6 100644
(file)
--- 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;
}
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 =
case BT_CTF_TYPE_ID_FLOAT:
{
struct bt_ctf_field_type_floating_point *floating_point =
This page took
0.023146 seconds
and
4
git commands to generate.