Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
struct ctf_trace *td = container_of(descriptor, struct ctf_trace,
parent);
- td->ctx = ctx;
+ td->parent.ctx = ctx;
}
static
cfs = container_of(event->stream, const struct ctf_file_stream,
parent);
trace = cfs->parent.stream_class->trace;
- if (trace->ctx)
- ret = trace->ctx;
+ if (trace->parent.ctx)
+ ret = trace->parent.ctx;
return ret;
}
/* Heap of streams, ordered to always get the lowest timestamp */
struct ptr_heap *stream_heap;
- struct bt_context *ctx;
struct bt_trace_handle *handle;
};
*/
#include <limits.h>
+#include <babeltrace/context-internal.h>
#ifdef __cplusplus
extern "C" {
/* Parent trace descriptor */
struct bt_trace_descriptor {
char path[PATH_MAX]; /* trace path */
+ struct bt_context *ctx;
};
#ifdef __cplusplus