+int bt_field_type_integer_set_mapped_clock_class_no_check(
+ struct bt_field_type *int_field_type,
+ struct bt_clock_class *clock_class);
+
+static inline
+const char *bt_field_type_id_string(enum bt_field_type_id type_id)
+{
+ switch (type_id) {
+ case BT_FIELD_TYPE_ID_UNKNOWN:
+ return "BT_FIELD_TYPE_ID_UNKNOWN";
+ case BT_FIELD_TYPE_ID_INTEGER:
+ return "BT_FIELD_TYPE_ID_INTEGER";
+ case BT_FIELD_TYPE_ID_FLOAT:
+ return "BT_FIELD_TYPE_ID_FLOAT";
+ case BT_FIELD_TYPE_ID_ENUM:
+ return "BT_FIELD_TYPE_ID_ENUM";
+ case BT_FIELD_TYPE_ID_STRING:
+ return "BT_FIELD_TYPE_ID_STRING";
+ case BT_FIELD_TYPE_ID_STRUCT:
+ return "BT_FIELD_TYPE_ID_STRUCT";
+ case BT_FIELD_TYPE_ID_ARRAY:
+ return "BT_FIELD_TYPE_ID_ARRAY";
+ case BT_FIELD_TYPE_ID_SEQUENCE:
+ return "BT_FIELD_TYPE_ID_SEQUENCE";
+ case BT_FIELD_TYPE_ID_VARIANT:
+ return "BT_FIELD_TYPE_ID_VARIANT";
+ default:
+ return "(unknown)";
+ }
+};
+
+static inline
+const char *bt_byte_order_string(enum bt_byte_order bo)
+{
+ switch (bo) {
+ case BT_BYTE_ORDER_UNKNOWN:
+ return "BT_BYTE_ORDER_UNKNOWN";
+ case BT_BYTE_ORDER_UNSPECIFIED:
+ return "BT_BYTE_ORDER_UNSPECIFIED";
+ case BT_BYTE_ORDER_NATIVE:
+ return "BT_BYTE_ORDER_NATIVE";
+ case BT_BYTE_ORDER_LITTLE_ENDIAN:
+ return "BT_BYTE_ORDER_LITTLE_ENDIAN";
+ case BT_BYTE_ORDER_BIG_ENDIAN:
+ return "BT_BYTE_ORDER_BIG_ENDIAN";
+ case BT_BYTE_ORDER_NETWORK:
+ return "BT_BYTE_ORDER_NETWORK";
+ default:
+ return "(unknown)";
+ }
+};
+
+static inline
+const char *bt_string_encoding_string(enum bt_string_encoding encoding)
+{
+ switch (encoding) {
+ case BT_STRING_ENCODING_UNKNOWN:
+ return "BT_STRING_ENCODING_UNKNOWN";
+ case BT_STRING_ENCODING_NONE:
+ return "BT_STRING_ENCODING_NONE";
+ case BT_STRING_ENCODING_UTF8:
+ return "BT_STRING_ENCODING_UTF8";
+ case BT_STRING_ENCODING_ASCII:
+ return "BT_STRING_ENCODING_ASCII";
+ default:
+ return "(unknown)";
+ }
+};
+
+static inline
+const char *bt_integer_base_string(enum bt_integer_base base)
+{
+ switch (base) {
+ case BT_INTEGER_BASE_UNKNOWN:
+ return "BT_INTEGER_BASE_UNKNOWN";
+ case BT_INTEGER_BASE_UNSPECIFIED:
+ return "BT_INTEGER_BASE_UNSPECIFIED";
+ case BT_INTEGER_BASE_BINARY:
+ return "BT_INTEGER_BASE_BINARY";
+ case BT_INTEGER_BASE_OCTAL:
+ return "BT_INTEGER_BASE_OCTAL";
+ case BT_INTEGER_BASE_DECIMAL:
+ return "BT_INTEGER_BASE_DECIMAL";
+ case BT_INTEGER_BASE_HEXADECIMAL:
+ return "BT_INTEGER_BASE_HEXADECIMAL";
+ default:
+ return "(unknown)";
+ }
+}
+
+static inline
+const char *bt_scope_string(enum bt_scope scope)
+{
+ switch (scope) {
+ case BT_SCOPE_UNKNOWN:
+ return "BT_SCOPE_UNKNOWN";
+ case BT_SCOPE_TRACE_PACKET_HEADER:
+ return "BT_SCOPE_TRACE_PACKET_HEADER";
+ case BT_SCOPE_STREAM_PACKET_CONTEXT:
+ return "BT_SCOPE_STREAM_PACKET_CONTEXT";
+ case BT_SCOPE_STREAM_EVENT_HEADER:
+ return "BT_SCOPE_STREAM_EVENT_HEADER";
+ case BT_SCOPE_STREAM_EVENT_CONTEXT:
+ return "BT_SCOPE_STREAM_EVENT_CONTEXT";
+ case BT_SCOPE_EVENT_CONTEXT:
+ return "BT_SCOPE_EVENT_CONTEXT";
+ case BT_SCOPE_EVENT_PAYLOAD:
+ return "BT_SCOPE_EVENT_PAYLOAD";
+ case BT_SCOPE_ENV:
+ return "BT_SCOPE_ENV";
+ default:
+ return "(unknown)";
+ }
+}