+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)";
+ }
+}
+