type classes: hash table
[babeltrace.git] / lib / types / enum.c
index 0117dd32721f7f2945b699054e793ec17e57749d..507d0c35e9ef0d26bffcbe1cb9a3eedaa04858e5 100644 (file)
@@ -160,10 +160,10 @@ struct enum_table *enum_new(void)
        struct enum_table *table;
 
        table = g_new(struct enum_table, 1);
-       table->value_to_quark = g_hash_table_new_full(enum_val_hash,
-                                                     enum_val_equal,
-                                                     enum_val_free, NULL);
-       table->quark_to_value = g_hash_table_new(g_direct_hash, g_direct_equal);
+       table->value_to_quark = g_hash_table(enum_val_hash, enum_val_equal);
+       table->quark_to_value = g_hash_table_new_full(g_direct_hash,
+                                                     g_direct_equal,
+                                                     NULL, enum_val_free);
 }
 
 void enum_destroy(struct enum_table *table)
This page took 0.023113 seconds and 4 git commands to generate.