+BT_HIDDEN
+int bt_ctf_field_type_integer_set_mapped_clock_class_no_check(
+ struct bt_ctf_field_type *int_field_type,
+ struct bt_ctf_clock_class *clock_class);
+
+static inline
+const char *bt_ctf_field_type_id_string(enum bt_ctf_field_type_id type_id)
+{
+ switch (type_id) {
+ case BT_CTF_FIELD_TYPE_ID_UNKNOWN:
+ return "BT_CTF_FIELD_TYPE_ID_UNKNOWN";
+ case BT_CTF_FIELD_TYPE_ID_INTEGER:
+ return "BT_CTF_FIELD_TYPE_ID_INTEGER";
+ case BT_CTF_FIELD_TYPE_ID_FLOAT:
+ return "BT_CTF_FIELD_TYPE_ID_FLOAT";
+ case BT_CTF_FIELD_TYPE_ID_ENUM:
+ return "BT_CTF_FIELD_TYPE_ID_ENUM";
+ case BT_CTF_FIELD_TYPE_ID_STRING:
+ return "BT_CTF_FIELD_TYPE_ID_STRING";
+ case BT_CTF_FIELD_TYPE_ID_STRUCT:
+ return "BT_CTF_FIELD_TYPE_ID_STRUCT";
+ case BT_CTF_FIELD_TYPE_ID_ARRAY:
+ return "BT_CTF_FIELD_TYPE_ID_ARRAY";
+ case BT_CTF_FIELD_TYPE_ID_SEQUENCE:
+ return "BT_CTF_FIELD_TYPE_ID_SEQUENCE";
+ case BT_CTF_FIELD_TYPE_ID_VARIANT:
+ return "BT_CTF_FIELD_TYPE_ID_VARIANT";
+ default:
+ return "(unknown)";
+ }
+};
+
+static inline
+const char *bt_ctf_byte_order_string(enum bt_ctf_byte_order bo)
+{
+ switch (bo) {
+ case BT_CTF_BYTE_ORDER_UNKNOWN:
+ return "BT_CTF_BYTE_ORDER_UNKNOWN";
+ case BT_CTF_BYTE_ORDER_NATIVE:
+ return "BT_CTF_BYTE_ORDER_NATIVE";
+ case BT_CTF_BYTE_ORDER_LITTLE_ENDIAN:
+ return "BT_CTF_BYTE_ORDER_LITTLE_ENDIAN";
+ case BT_CTF_BYTE_ORDER_BIG_ENDIAN:
+ return "BT_CTF_BYTE_ORDER_BIG_ENDIAN";
+ case BT_CTF_BYTE_ORDER_NETWORK:
+ return "BT_CTF_BYTE_ORDER_NETWORK";
+ default:
+ return "(unknown)";
+ }
+};
+
+static inline
+const char *bt_ctf_string_encoding_string(enum bt_ctf_string_encoding encoding)
+{
+ switch (encoding) {
+ case BT_CTF_STRING_ENCODING_UNKNOWN:
+ return "BT_CTF_STRING_ENCODING_UNKNOWN";
+ case BT_CTF_STRING_ENCODING_NONE:
+ return "BT_CTF_STRING_ENCODING_NONE";
+ case BT_CTF_STRING_ENCODING_UTF8:
+ return "BT_CTF_STRING_ENCODING_UTF8";
+ case BT_CTF_STRING_ENCODING_ASCII:
+ return "BT_CTF_STRING_ENCODING_ASCII";
+ default:
+ return "(unknown)";
+ }
+};
+
+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_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)";
+ }
+}
+