X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=types%2Fenum.c;fp=types%2Fenum.c;h=2c0cfe866f9f8f3f9f5d2fa7d2df419c95e3ff27;hp=6d3371395621a9e3a78737509788d069b1b38502;hb=2b77e6a6ff6a0b46ee3bd607d1d75f2d20af5ea0;hpb=ebae302b9108c5747e8af8b3d54740f48479b245 diff --git a/types/enum.c b/types/enum.c index 6d337139..2c0cfe86 100644 --- a/types/enum.c +++ b/types/enum.c @@ -440,10 +440,10 @@ struct definition * */ _enum->p.index = root_name ? INT_MAX : index; _enum->p.name = field_name; - _enum->p.path = new_definition_path(parent_scope, field_name, root_name); - _enum->p.scope = new_definition_scope(parent_scope, field_name, root_name); + _enum->p.path = bt_new_definition_path(parent_scope, field_name, root_name); + _enum->p.scope = bt_new_definition_scope(parent_scope, field_name, root_name); _enum->value = NULL; - ret = register_field_definition(field_name, &_enum->p, + ret = bt_register_field_definition(field_name, &_enum->p, parent_scope); assert(!ret); definition_integer_parent = @@ -462,7 +462,7 @@ void _enum_definition_free(struct definition *definition) container_of(definition, struct definition_enum, p); bt_definition_unref(&_enum->integer->p); - free_definition_scope(_enum->p.scope); + bt_free_definition_scope(_enum->p.scope); bt_declaration_unref(_enum->p.declaration); if (_enum->value) g_array_unref(_enum->value);