- struct_type->scope = new_type_scope(parent_scope);
- type->id = CTF_TYPE_STRUCT;
- type->name = g_quark_from_string(name);
- type->alignment = 1;
- type->copy = struct_copy;
- type->type_free = _struct_type_free;
- type->declaration_new = _struct_declaration_new;
- type->declaration_free = _struct_declaration_free;
- type->ref = 1;
- return struct_type;
+ struct_declaration->scope = new_declaration_scope(parent_scope);
+ declaration->id = CTF_TYPE_STRUCT;
+ declaration->name = g_quark_from_string(name);
+ declaration->alignment = 1;
+ declaration->copy = struct_copy;
+ declaration->declaration_free = _struct_declaration_free;
+ declaration->definition_new = _struct_definition_new;
+ declaration->definition_free = _struct_definition_free;
+ declaration->ref = 1;
+ return struct_declaration;