Add "text" plugin to list.
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 7 May 2011 00:21:20 +0000 (20:21 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 7 May 2011 00:21:20 +0000 (20:21 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
converter/Makefile.am
formats/ctf-text/types/struct.c
formats/registry.c

index c7ff134d8abec6112c23bcaccffefe24c1aa5403..3aa7fc3d5a4efa24b11700929c88375056a2cbd4 100644 (file)
@@ -10,7 +10,8 @@ bin_PROGRAMS = babeltrace
 #libbabeltrace_la_LIBADD = \
 #      $(top_builddir)/types/libbabeltrace_types.la \
 #      $(top_builddir)/formats/libbabeltrace_registry.la \
-#      $(top_builddir)/formats/ctf/libctf.la
+#      $(top_builddir)/formats/ctf/libctf.la \
+#      $(top_builddir)/formats/ctf-text/libctf-text.la
 
 babeltrace_SOURCES = \
        babeltrace.c
@@ -21,4 +22,5 @@ babeltrace_SOURCES = \
 babeltrace_LDADD = \
        $(top_builddir)/types/libbabeltrace_types.la \
        $(top_builddir)/formats/libbabeltrace_registry.la \
-       $(top_builddir)/formats/ctf/libctf.la
+       $(top_builddir)/formats/ctf/libctf.la \
+       $(top_builddir)/formats/ctf-text/libctf-text.la
index 20bc1a7f3f8e872bc1ec72c737e3c6ff57c7c050..cd63fe99551cbaaf4f45d210f10772011856cc2f 100644 (file)
@@ -21,7 +21,6 @@
 
 void ctf_text_struct_write(struct stream_pos *ppos, struct definition *definition)
 {
-       struct declaration *declaration = definition->declaration;
        struct ctf_text_stream_pos *pos = ctf_text_pos(ppos);
 
        if (!pos->dummy) {
index 17bc3bce7d36a3d68a9975ee5ac4b7d5c006b0e5..a6fd74b2bc5d3432ba0dae10eb0784753607e411 100644 (file)
@@ -73,6 +73,8 @@ int bt_register_format(struct format *format)
 
 void format_init(void)
 {
+       if (init_done)
+               return;
        format_registry = g_hash_table_new(g_direct_hash, g_direct_equal);
        assert(format_registry);
        init_done = 1;
This page took 0.024359 seconds and 4 git commands to generate.