const char *bt_ctf_event_name(const struct bt_ctf_event *event)
{
- struct ctf_event *event_class;
- struct ctf_stream_class *stream_class;
+ struct ctf_event_declaration *event_class;
+ struct ctf_stream_declaration *stream_class;
if (!event)
return NULL;
{
struct bt_context *ret = NULL;
struct ctf_file_stream *cfs;
- struct ctf_stream *stream;
- struct ctf_stream_class *stream_class;
struct ctf_trace *trace;
cfs = container_of(event->stream, struct ctf_file_stream,
parent);
- stream = &cfs->parent;
- stream_class = stream->stream_class;
- trace = stream_class->trace;
-
+ trace = cfs->parent.stream_class->trace;
if (trace->ctx)
ret = trace->ctx;
{
int ret = -1;
struct ctf_file_stream *cfs;
- struct ctf_stream *stream;
- struct ctf_stream_class *stream_class;
struct ctf_trace *trace;
cfs = container_of(event->stream, struct ctf_file_stream,
parent);
- stream = &cfs->parent;
- stream_class = stream->stream_class;
- trace = stream_class->trace;
-
+ trace = cfs->parent.stream_class->trace;
if (trace->handle)
ret = trace->handle->id;