ir: add user byte order to integer/float types
[babeltrace.git] / include / babeltrace / ctf-ir / event-types-internal.h
index 1dea88d0b0327ae392767793575ec8b6922ba682..d7a3c3b783d075dc870e5d2dfb0789c3c8b81355 100644 (file)
@@ -77,6 +77,14 @@ struct bt_ctf_field_type_integer {
        struct bt_ctf_field_type parent;
        struct declaration_integer declaration;
        struct bt_ctf_clock *mapped_clock;
+
+       /*
+        * This is what the user sets and is never modified by internal
+        * code.
+        *
+        * This field must contain a `BT_CTF_BYTE_ORDER_*` value.
+        */
+       enum bt_ctf_byte_order user_byte_order;
 };
 
 struct enumeration_mapping {
@@ -105,6 +113,14 @@ struct bt_ctf_field_type_floating_point {
        struct declaration_integer sign;
        struct declaration_integer mantissa;
        struct declaration_integer exp;
+
+       /*
+        * This is what the user sets and is never modified by internal
+        * code.
+        *
+        * This field must contain a `BT_CTF_BYTE_ORDER_*` value.
+        */
+       enum bt_ctf_byte_order user_byte_order;
 };
 
 struct structure_field {
This page took 0.024308 seconds and 4 git commands to generate.