X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fregistry.c;h=829ede9da77bf12dce5da544e3ea0bb3538a8049;hb=613f532b047a23c6916e2c08707b09296edbfcb2;hp=656d6360aca0030856c3a08830998cea1ea4119f;hpb=d2b8ea6b81979dd25a8bab77c629499b988d7bae;p=babeltrace.git diff --git a/formats/registry.c b/formats/registry.c index 656d6360..829ede9d 100644 --- a/formats/registry.c +++ b/formats/registry.c @@ -3,7 +3,9 @@ * * Format Registry * - * Copyright 2010 - Mathieu Desnoyers + * Copyright 2010-2011 EfficiOS Inc. and Linux Foundation + * + * Author: Mathieu Desnoyers * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -20,6 +22,7 @@ #include #include #include +#include struct walk_data { FILE *fp; @@ -37,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)