X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fregistry.c;h=829ede9da77bf12dce5da544e3ea0bb3538a8049;hb=613f532b047a23c6916e2c08707b09296edbfcb2;hp=a08b59364548104a93ad1503aac1543fd06b4394;hpb=01c76b246be85b5d9c8e99813950fb194c9f714f;p=babeltrace.git diff --git a/formats/registry.c b/formats/registry.c index a08b5936..829ede9d 100644 --- a/formats/registry.c +++ b/formats/registry.c @@ -22,6 +22,7 @@ #include #include #include +#include struct walk_data { FILE *fp; @@ -39,12 +40,12 @@ void __attribute__((destructor)) format_finalize(void); */ GHashTable *format_registry; -struct format *bt_lookup_format(GQuark qname) +struct format *bt_lookup_format(bt_intern_str name) { if (!init_done) return NULL; return g_hash_table_lookup(format_registry, - (gconstpointer) (unsigned long) qname); + (gconstpointer) (unsigned long) name); } static void show_format(gpointer key, gpointer value, gpointer user_data)