projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build fix
[babeltrace.git]
/
formats
/
registry.c
diff --git
a/formats/registry.c
b/formats/registry.c
index 6b28cbeb0b1cad5354fd64bb688bbf5e1b2aa750..4f9dc244a3618451c54e0f4265563d0a7a0bc739 100644
(file)
--- a/
formats/registry.c
+++ b/
formats/registry.c
@@
-16,6
+16,7
@@
* all copies or substantial portions of the Software.
*/
* all copies or substantial portions of the Software.
*/
+#include <babeltrace/format.h>
#include <glib.h>
#include <errno.h>
#include <glib.h>
#include <errno.h>
@@
-35,19
+36,19
@@
struct format *bt_lookup_format(GQuark qname)
if (!init_done)
return NULL;
return g_hash_table_lookup(format_registry,
if (!init_done)
return NULL;
return g_hash_table_lookup(format_registry,
- (gconstpointer) (unsigned long) qname)
+ (gconstpointer) (unsigned long) qname)
;
}
}
-int bt_register_format(
const
struct format *format)
+int bt_register_format(struct format *format)
{
if (!init_done)
format_init();
{
if (!init_done)
format_init();
- if (bt_lookup_format(
q
name))
+ if (bt_lookup_format(
format->
name))
return -EEXIST;
g_hash_table_insert(format_registry,
return -EEXIST;
g_hash_table_insert(format_registry,
- (g
const
pointer) (unsigned long) format->name,
+ (gpointer) (unsigned long) format->name,
format);
return 0;
}
format);
return 0;
}
@@
-59,7
+60,7
@@
void format_init(void)
init_done = 1;
}
init_done = 1;
}
-
int
format_finalize(void)
+
void
format_finalize(void)
{
g_hash_table_destroy(format_registry);
}
{
g_hash_table_destroy(format_registry);
}
This page took
0.025418 seconds
and
4
git commands to generate.