configure: check for elfutils (libelf and libdw) >= 0.154
[babeltrace.git] / types / integer.c
index 92c7eb11813026256f7646bfc8a996421c28f902..52cc6bb682fa6baad78c2c0036b2d44eebeab5cf 100644 (file)
@@ -33,7 +33,7 @@
 #include <stdint.h>
 
 static
-struct bt_definition *_integer_definition_new(struct declaration *declaration,
+struct bt_definition *_integer_definition_new(struct bt_declaration *declaration,
                               struct definition_scope *parent_scope,
                               GQuark field_name, int index,
                               const char *root_name);
@@ -41,7 +41,7 @@ static
 void _integer_definition_free(struct bt_definition *definition);
 
 static
-void _integer_declaration_free(struct declaration *declaration)
+void _integer_declaration_free(struct bt_declaration *declaration)
 {
        struct declaration_integer *integer_declaration =
                container_of(declaration, struct declaration_integer, p);
@@ -56,7 +56,7 @@ struct declaration_integer *
 {
        struct declaration_integer *integer_declaration;
 
-       integer_declaration = g_new(struct declaration_integer, 1);
+       integer_declaration = g_new0(struct declaration_integer, 1);
        integer_declaration->p.id = CTF_TYPE_INTEGER;
        integer_declaration->p.alignment = alignment;
        integer_declaration->p.declaration_free = _integer_declaration_free;
@@ -74,7 +74,7 @@ struct declaration_integer *
 
 static
 struct bt_definition *
-       _integer_definition_new(struct declaration *declaration,
+       _integer_definition_new(struct bt_declaration *declaration,
                                struct definition_scope *parent_scope,
                                GQuark field_name, int index,
                                const char *root_name)
@@ -84,7 +84,7 @@ struct bt_definition *
        struct definition_integer *integer;
        int ret;
 
-       integer = g_new(struct definition_integer, 1);
+       integer = g_new0(struct definition_integer, 1);
        bt_declaration_ref(&integer_declaration->p);
        integer->p.declaration = declaration;
        integer->declaration = integer_declaration;
This page took 0.024723 seconds and 4 git commands to generate.