X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=types%2Fvariant.c;fp=types%2Fvariant.c;h=ebaf43c1fdd463cff09e669627b60adc14950627;hp=837875c1ac5097694cd08d4b763a20826081a9d2;hb=2b77e6a6ff6a0b46ee3bd607d1d75f2d20af5ea0;hpb=ebae302b9108c5747e8af8b3d54740f48479b245 diff --git a/types/variant.c b/types/variant.c index 837875c1..ebaf43c1 100644 --- a/types/variant.c +++ b/types/variant.c @@ -195,14 +195,14 @@ struct definition * */ variant->p.index = root_name ? INT_MAX : index; variant->p.name = field_name; - variant->p.path = new_definition_path(parent_scope, field_name, root_name); - variant->p.scope = new_definition_scope(parent_scope, field_name, root_name); + variant->p.path = bt_new_definition_path(parent_scope, field_name, root_name); + variant->p.scope = bt_new_definition_scope(parent_scope, field_name, root_name); - ret = register_field_definition(field_name, &variant->p, + ret = bt_register_field_definition(field_name, &variant->p, parent_scope); assert(!ret); - variant->enum_tag = lookup_path_definition(variant->p.scope->scope_path, + variant->enum_tag = bt_lookup_path_definition(variant->p.scope->scope_path, variant_declaration->tag_name, parent_scope); @@ -232,7 +232,7 @@ struct definition * variant->current_field = NULL; return &variant->p; error: - free_definition_scope(variant->p.scope); + bt_free_definition_scope(variant->p.scope); bt_declaration_unref(&variant_declaration->p); g_free(variant); return NULL; @@ -251,7 +251,7 @@ void _variant_definition_free(struct definition *definition) bt_definition_unref(field); } bt_definition_unref(variant->enum_tag); - free_definition_scope(variant->p.scope); + bt_free_definition_scope(variant->p.scope); bt_declaration_unref(variant->p.declaration); g_ptr_array_free(variant->fields, TRUE); g_free(variant);