#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);
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);
{
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;
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)
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;