+
+enum ctf_string_encoding bt_get_string_encoding(const struct bt_definition *field)
+{
+ struct definition_string *string_definition;
+ const struct declaration_string *string_declaration;
+
+ string_definition = container_of(field, struct definition_string, p);
+ string_declaration = string_definition->declaration;
+
+ return string_declaration->encoding;
+}
+
+char *bt_get_string(const struct bt_definition *field)
+{
+ struct definition_string *string_definition =
+ container_of(field, struct definition_string, p);
+
+ assert(string_definition->value != NULL);
+
+ return string_definition->value;
+}