From f970ae1d5ab15b4154d6a7bbe5bbdda5e3763de2 Mon Sep 17 00:00:00 2001 From: Julien Desfossez Date: Thu, 29 Sep 2011 20:42:41 -0400 Subject: [PATCH] Pass stream pointer with callback caller data Signed-off-by: Julien Desfossez Signed-off-by: Mathieu Desnoyers --- converter/babeltrace-lib.c | 1 + include/babeltrace/babeltrace.h | 1 + 2 files changed, 2 insertions(+) diff --git a/converter/babeltrace-lib.c b/converter/babeltrace-lib.c index d62565c0..ac3bd7c6 100644 --- a/converter/babeltrace-lib.c +++ b/converter/babeltrace-lib.c @@ -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) { diff --git a/include/babeltrace/babeltrace.h b/include/babeltrace/babeltrace.h index af2e110e..9522628f 100644 --- a/include/babeltrace/babeltrace.h +++ b/include/babeltrace/babeltrace.h @@ -53,6 +53,7 @@ struct trace_collection_pos { struct bt_ctf_data { struct ctf_stream_event *event; + struct ctf_stream *stream; }; /* -- 2.34.1