Update pretty print output
[babeltrace.git] / types / struct.c
index 1a2b59d51e26e9cbb319f313aac798dba2bd0d51..ba312111cd3d65c3f25a5bf8cc3ecc71af7dd14d 100644 (file)
@@ -109,6 +109,7 @@ struct definition *
        _struct->p.ref = 1;
        _struct->p.index = index;
        _struct->p.name = field_name;
+       _struct->p.path = new_definition_path(parent_scope, field_name);
        _struct->scope = new_definition_scope(parent_scope, field_name);
        _struct->fields = g_ptr_array_sized_new(DEFAULT_NR_STRUCT_FIELDS);
        g_ptr_array_set_size(_struct->fields, struct_declaration->fields->len);
@@ -215,3 +216,8 @@ struct_definition_get_field_from_index(struct definition_struct *_struct,
                return NULL;
        return g_ptr_array_index(_struct->fields, index);
 }
+
+uint64_t struct_declaration_len(struct declaration_struct *struct_declaration)
+{
+       return struct_declaration->fields->len;
+}
This page took 0.023758 seconds and 4 git commands to generate.