-static inline
-const char *bt_ctf_integer_base_string(enum bt_ctf_integer_base base)
-{
- switch (base) {
- case BT_CTF_INTEGER_BASE_UNKNOWN:
- return "BT_CTF_INTEGER_BASE_UNKNOWN";
- case BT_CTF_INTEGER_BASE_UNSPECIFIED:
- return "BT_CTF_INTEGER_BASE_UNSPECIFIED";
- case BT_CTF_INTEGER_BASE_BINARY:
- return "BT_CTF_INTEGER_BASE_BINARY";
- case BT_CTF_INTEGER_BASE_OCTAL:
- return "BT_CTF_INTEGER_BASE_OCTAL";
- case BT_CTF_INTEGER_BASE_DECIMAL:
- return "BT_CTF_INTEGER_BASE_DECIMAL";
- case BT_CTF_INTEGER_BASE_HEXADECIMAL:
- return "BT_CTF_INTEGER_BASE_HEXADECIMAL";
- default:
- return "(unknown)";
- }
-}
-
-static inline
-const char *bt_ctf_scope_string(enum bt_ctf_scope scope)
-{
- switch (scope) {
- case BT_CTF_SCOPE_UNKNOWN:
- return "BT_CTF_SCOPE_UNKNOWN";
- case BT_CTF_SCOPE_TRACE_PACKET_HEADER:
- return "BT_CTF_SCOPE_TRACE_PACKET_HEADER";
- case BT_CTF_SCOPE_STREAM_PACKET_CONTEXT:
- return "BT_CTF_SCOPE_STREAM_PACKET_CONTEXT";
- case BT_CTF_SCOPE_STREAM_EVENT_HEADER:
- return "BT_CTF_SCOPE_STREAM_EVENT_HEADER";
- case BT_CTF_SCOPE_STREAM_EVENT_CONTEXT:
- return "BT_CTF_SCOPE_STREAM_EVENT_CONTEXT";
- case BT_CTF_SCOPE_EVENT_CONTEXT:
- return "BT_CTF_SCOPE_EVENT_CONTEXT";
- case BT_CTF_SCOPE_EVENT_PAYLOAD:
- return "BT_CTF_SCOPE_EVENT_PAYLOAD";
- case BT_CTF_SCOPE_ENV:
- return "BT_CTF_SCOPE_ENV";
- default:
- return "(unknown)";
- }
-}
+BT_HIDDEN
+struct bt_field_type_common *
+bt_field_type_common_array_borrow_element_field_type(
+ struct bt_field_type_common *ft);
+
+BT_HIDDEN
+int bt_field_type_common_array_set_element_field_type(
+ struct bt_field_type_common *ft,
+ struct bt_field_type_common *element_ft);
+
+BT_HIDDEN
+int64_t bt_field_type_common_array_get_length(struct bt_field_type_common *ft);
+
+BT_HIDDEN
+struct bt_field_type_common *
+bt_field_type_common_sequence_borrow_element_field_type(
+ struct bt_field_type_common *ft);
+
+BT_HIDDEN
+int bt_field_type_common_sequence_set_element_field_type(
+ struct bt_field_type_common *ft,
+ struct bt_field_type_common *element_ft);
+
+BT_HIDDEN
+const char *bt_field_type_common_sequence_get_length_field_name(
+ struct bt_field_type_common *ft);
+
+BT_HIDDEN
+enum bt_string_encoding bt_field_type_common_string_get_encoding(
+ struct bt_field_type_common *ft);
+
+BT_HIDDEN
+int bt_field_type_common_string_set_encoding(struct bt_field_type_common *ft,
+ enum bt_string_encoding encoding);
+
+BT_HIDDEN
+int bt_field_type_common_get_alignment(struct bt_field_type_common *type);
+
+BT_HIDDEN
+int bt_field_type_common_set_alignment(struct bt_field_type_common *ft,
+ unsigned int alignment);
+
+BT_HIDDEN
+enum bt_byte_order bt_field_type_common_get_byte_order(
+ struct bt_field_type_common *ft);
+
+BT_HIDDEN
+int bt_field_type_common_set_byte_order(struct bt_field_type_common *ft,
+ enum bt_byte_order byte_order);
+
+BT_HIDDEN
+enum bt_field_type_id bt_field_type_common_get_type_id(
+ struct bt_field_type_common *ft);
+
+BT_HIDDEN
+void _bt_field_type_common_freeze(struct bt_field_type_common *ft);
+
+BT_HIDDEN
+void _bt_field_type_freeze(struct bt_field_type *ft);
+
+BT_HIDDEN
+struct bt_field_type_common *
+bt_field_type_common_variant_borrow_field_type_signed(
+ struct bt_field_type_common_variant *var_ft,
+ int64_t tag_value);
+
+BT_HIDDEN
+struct bt_field_type_common *
+bt_field_type_common_variant_borrow_field_type_unsigned(
+ struct bt_field_type_common_variant *var_ft,
+ uint64_t tag_value);
+
+BT_HIDDEN
+struct bt_field_type_common *bt_field_type_common_copy(
+ struct bt_field_type_common *ft);
+
+BT_HIDDEN
+int bt_field_type_common_structure_get_field_name_index(
+ struct bt_field_type_common *ft, const char *name);
+
+BT_HIDDEN
+int bt_field_type_common_variant_get_field_name_index(
+ struct bt_field_type_common *ft, const char *name);
+
+BT_HIDDEN
+int bt_field_type_common_sequence_set_length_field_path(
+ struct bt_field_type_common *ft, struct bt_field_path *path);
+
+BT_HIDDEN
+int bt_field_type_common_variant_set_tag_field_path(
+ struct bt_field_type_common *ft,
+ struct bt_field_path *path);
+
+BT_HIDDEN
+int bt_field_type_common_variant_set_tag_field_type(
+ struct bt_field_type_common *ft,
+ struct bt_field_type_common *tag_ft);
+
+BT_HIDDEN
+void bt_field_type_common_generic_freeze(struct bt_field_type_common *ft);
+
+BT_HIDDEN
+void bt_field_type_common_enumeration_freeze_recursive(
+ struct bt_field_type_common *ft);
+
+BT_HIDDEN
+void bt_field_type_common_structure_freeze_recursive(
+ struct bt_field_type_common *ft);
+
+BT_HIDDEN
+void bt_field_type_common_variant_freeze_recursive(
+ struct bt_field_type_common *ft);
+
+BT_HIDDEN
+void bt_field_type_common_array_freeze_recursive(
+ struct bt_field_type_common *ft);
+
+BT_HIDDEN
+void bt_field_type_common_sequence_freeze_recursive(
+ struct bt_field_type_common *type);
+
+BT_HIDDEN
+void bt_field_type_common_integer_set_byte_order(
+ struct bt_field_type_common *ft, enum bt_byte_order byte_order);
+
+BT_HIDDEN
+void bt_field_type_common_enumeration_set_byte_order_recursive(
+ struct bt_field_type_common *ft, enum bt_byte_order byte_order);
+
+BT_HIDDEN
+void bt_field_type_common_floating_point_set_byte_order(
+ struct bt_field_type_common *ft, enum bt_byte_order byte_order);
+
+BT_HIDDEN
+void bt_field_type_common_structure_set_byte_order_recursive(
+ struct bt_field_type_common *ft,
+ enum bt_byte_order byte_order);
+
+BT_HIDDEN
+void bt_field_type_common_variant_set_byte_order_recursive(
+ struct bt_field_type_common *ft,
+ enum bt_byte_order byte_order);
+
+BT_HIDDEN
+void bt_field_type_common_array_set_byte_order_recursive(
+ struct bt_field_type_common *ft,
+ enum bt_byte_order byte_order);
+
+BT_HIDDEN
+void bt_field_type_common_sequence_set_byte_order_recursive(
+ struct bt_field_type_common *ft,
+ enum bt_byte_order byte_order);
+
+BT_HIDDEN
+int bt_field_type_common_integer_compare(struct bt_field_type_common *ft_a,
+ struct bt_field_type_common *ft_b);
+
+BT_HIDDEN
+int bt_field_type_common_floating_point_compare(
+ struct bt_field_type_common *ft_a,
+ struct bt_field_type_common *ft_b);
+
+BT_HIDDEN
+int bt_field_type_common_enumeration_compare_recursive(
+ struct bt_field_type_common *ft_a,
+ struct bt_field_type_common *ft_b);
+
+BT_HIDDEN
+int bt_field_type_common_string_compare(struct bt_field_type_common *ft_a,
+ struct bt_field_type_common *ft_b);
+
+BT_HIDDEN
+int bt_field_type_common_structure_compare_recursive(
+ struct bt_field_type_common *ft_a,
+ struct bt_field_type_common *ft_b);
+
+BT_HIDDEN
+int bt_field_type_common_variant_compare_recursive(
+ struct bt_field_type_common *ft_a,
+ struct bt_field_type_common *ft_b);
+
+BT_HIDDEN
+int bt_field_type_common_array_compare_recursive(
+ struct bt_field_type_common *ft_a,
+ struct bt_field_type_common *ft_b);
+
+BT_HIDDEN
+int bt_field_type_common_sequence_compare_recursive(
+ struct bt_field_type_common *ft_a,
+ struct bt_field_type_common *ft_b);
+
+BT_HIDDEN
+int bt_field_type_common_compare(struct bt_field_type_common *ft_a,
+ struct bt_field_type_common *ft_b);
+
+BT_HIDDEN
+int64_t bt_field_type_common_get_field_count(struct bt_field_type_common *ft);
+
+BT_HIDDEN
+struct bt_field_type_common *bt_field_type_common_borrow_field_at_index(
+ struct bt_field_type_common *ft, int index);
+
+BT_HIDDEN
+int bt_field_type_common_get_field_index(struct bt_field_type_common *ft,
+ const char *name);
+
+BT_HIDDEN
+struct bt_field_path *bt_field_type_common_variant_borrow_tag_field_path(
+ struct bt_field_type_common *ft);
+
+BT_HIDDEN
+struct bt_field_path *bt_field_type_common_sequence_borrow_length_field_path(
+ struct bt_field_type_common *ft);
+
+BT_HIDDEN
+int bt_field_type_common_validate_single_clock_class(
+ struct bt_field_type_common *ft,
+ struct bt_clock_class **expected_clock_class);