`ctf` plugin: metadata: use BT_COMP_LOG*() instead of BT_LOG*()
[babeltrace.git] / src / plugins / ctf / common / metadata / ctf-meta-translate.c
index 6fdc2dc88486067a037151e02907ac6a5665a1e5..9f6b32e5d122af3d7e45ae367cbaf8f0811ce196 100644 (file)
@@ -23,7 +23,7 @@
 #include "ctf-meta-visitors.h"
 
 struct ctx {
-       bt_self_component_source *self_comp;
+       bt_self_component *self_comp;
        bt_trace_class *ir_tc;
        bt_stream_class *ir_sc;
        struct ctf_trace_class *tc;
@@ -571,9 +571,7 @@ int ctf_trace_class_to_ir(struct ctx *ctx)
        for (i = 0; i < ctx->tc->clock_classes->len; i++) {
                struct ctf_clock_class *cc = ctx->tc->clock_classes->pdata[i];
 
-               cc->ir_cc = bt_clock_class_create(
-                               bt_self_component_source_as_self_component(
-                                       ctx->self_comp));
+               cc->ir_cc = bt_clock_class_create(ctx->self_comp);
                ctf_clock_class_to_ir(cc->ir_cc, cc);
        }
 
@@ -587,7 +585,7 @@ end:
 }
 
 BT_HIDDEN
-int ctf_trace_class_translate(bt_self_component_source *self_comp,
+int ctf_trace_class_translate(bt_self_component *self_comp,
                bt_trace_class *ir_tc, struct ctf_trace_class *tc)
 {
        int ret = 0;
This page took 0.023348 seconds and 4 git commands to generate.