Pass stream pointer with callback caller data
authorJulien Desfossez <julien.desfossez@polymtl.ca>
Fri, 30 Sep 2011 00:42:41 +0000 (20:42 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 30 Sep 2011 00:42:41 +0000 (20:42 -0400)
Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
converter/babeltrace-lib.c
include/babeltrace/babeltrace.h

index d62565c02c88c173b4e95939f9ec4c4c54944367..ac3bd7c621bd7417ba0f23dde20d1f03390290ec 100644 (file)
@@ -505,6 +505,7 @@ void process_callbacks(struct babeltrace_iter *iter,
        struct bt_ctf_data ctf_data;
 
        ctf_data.event = extract_ctf_stream_event(stream);
+       ctf_data.stream = stream;
 
        /* process all events callback first */
        if (iter->main_callbacks.callback) {
index af2e110e030943ed82468d45b63a5a7c2b3eed3a..9522628f9740e0ce21ab4edf669647eaa8fa14e6 100644 (file)
@@ -53,6 +53,7 @@ struct trace_collection_pos {
 
 struct bt_ctf_data {
        struct ctf_stream_event *event;
+       struct ctf_stream *stream;
 };
 
 /*
This page took 0.034445 seconds and 4 git commands to generate.