Use dynamic shared libraries, list formats
[babeltrace.git] / formats / ctf / ctf.c
index c8a3712235ae749215e906f342921a926605f7a8..57357b792aa2a117f2242464e429f8adc4e659ff 100644 (file)
@@ -3,7 +3,7 @@
  *
  * 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
@@ -19,8 +19,6 @@
 #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,
@@ -37,13 +35,15 @@ static struct format ctf_format = {
        .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;
 
This page took 0.023072 seconds and 4 git commands to generate.