}
struct declaration_string *
- string_declaration_new(enum ctf_string_encoding encoding)
+ bt_string_declaration_new(enum ctf_string_encoding encoding)
{
struct declaration_string *string_declaration;
*/
string->p.index = root_name ? INT_MAX : index;
string->p.name = field_name;
- string->p.path = new_definition_path(parent_scope, field_name,
+ string->p.path = bt_new_definition_path(parent_scope, field_name,
root_name);
string->p.scope = NULL;
string->value = NULL;
string->len = 0;
string->alloc_len = 0;
- ret = register_field_definition(field_name, &string->p,
+ ret = bt_register_field_definition(field_name, &string->p,
parent_scope);
assert(!ret);
return &string->p;
g_free(string);
}
-enum ctf_string_encoding get_string_encoding(const struct definition *field)
+enum ctf_string_encoding bt_get_string_encoding(const struct definition *field)
{
struct definition_string *string_definition;
const struct declaration_string *string_declaration;
return string_declaration->encoding;
}
-char *get_string(const struct definition *field)
+char *bt_get_string(const struct definition *field)
{
struct definition_string *string_definition =
container_of(field, struct definition_string, p);