X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fbt-dummy%2Fbt-dummy.c;h=6192e88807570602fe31813f8a3303fa8c8858e4;hb=d7503815516dc78258eb0a6d7ffd2aa9e83caadd;hp=f0ce913c2a0a88344ea1ad47349810673f1d4a70;hpb=1b8455b701df7ac196e35795b9ab8ef2d402058d;p=babeltrace.git diff --git a/formats/bt-dummy/bt-dummy.c b/formats/bt-dummy/bt-dummy.c index f0ce913c..6192e888 100644 --- a/formats/bt-dummy/bt-dummy.c +++ b/formats/bt-dummy/bt-dummy.c @@ -54,6 +54,7 @@ struct bt_trace_descriptor *bt_dummy_open_trace(const char *path, int flags, pos = g_new0(struct ctf_text_stream_pos, 1); pos->parent.rw_table = NULL; pos->parent.event_cb = bt_dummy_write_event; + pos->parent.trace = &pos->trace_descriptor; return &pos->trace_descriptor; } @@ -68,7 +69,7 @@ int bt_dummy_close_trace(struct bt_trace_descriptor *td) } static -struct format bt_dummy_format = { +struct bt_format bt_dummy_format = { .open_trace = bt_dummy_open_trace, .close_trace = bt_dummy_close_trace, };