ir: add user byte order to integer/float types
[babeltrace.git] / include / babeltrace / ctf-ir / event-types-internal.h
index ed085dabf27bce5bb3544f3e8160ee7108ad8a76..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 {
@@ -238,4 +254,12 @@ int bt_ctf_field_type_variant_set_field_index(
                struct bt_ctf_field_type *variant,
                struct bt_ctf_field_type *field, int index);
 
+BT_HIDDEN
+int bt_ctf_field_type_array_set_element_type(struct bt_ctf_field_type *array,
+               struct bt_ctf_field_type *element_type);
+
+BT_HIDDEN
+int bt_ctf_field_type_sequence_set_element_type(struct bt_ctf_field_type *array,
+               struct bt_ctf_field_type *element_type);
+
 #endif /* BABELTRACE_CTF_IR_EVENT_TYPES_INTERNAL_H */
This page took 0.025099 seconds and 4 git commands to generate.