*
* Format registration.
*
- * Copyright 2010 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright 2010, 2011 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
#include <babeltrace/format.h>
#include <babeltrace/ctf/types.h>
-void __attribute__((constructor)) ctf_init(void);
-
static struct format ctf_format = {
.uint_read = ctf_uint_read,
.int_read = ctf_int_read,
.enum_write = ctf_enum_write,
.struct_begin = ctf_struct_begin,
.struct_end = ctf_struct_end,
+ .variant_begin = ctf_variant_begin,
+ .variant_end = ctf_variant_end,
.array_begin = ctf_array_begin,
.array_end = ctf_array_end,
.sequence_begin = ctf_sequence_begin,
.sequence_end = ctf_sequence_end,
};
-void ctf_init(void)
+void __attribute__((constructor)) ctf_init(void)
{
int ret;