stream = g_new0(struct ctf_stream, 1);
stream->declaration_scope = new_declaration_scope(parent_declaration_scope);
stream->events_by_id = g_ptr_array_new();
- stream->event_quark_to_id = g_hash_table_new(g_int_hash, g_int_equal);
+ stream->event_quark_to_id = g_hash_table_new(g_direct_hash, g_direct_equal);
cds_list_for_each_entry(iter, &node->u.stream.declaration_list, siblings) {
ret = ctf_stream_declaration_visit(fd, depth + 1, iter, stream, trace);
if (ret)
enum_val_free,
enum_range_set_free);
CDS_INIT_LIST_HEAD(&enum_declaration->table.range_to_quark);
- enum_declaration->table.quark_to_range_set = g_hash_table_new_full(g_int_hash,
- g_int_equal,
+ enum_declaration->table.quark_to_range_set = g_hash_table_new_full(g_direct_hash,
+ g_direct_equal,
NULL, enum_range_set_free);
declaration_ref(&integer_declaration->p);
enum_declaration->integer_declaration = integer_declaration;