Implement trace listener interface
[babeltrace.git] / formats / ctf / ir / stream-class.c
index cddbb97968b7c9523af201f58375e62faed4de5d..877a9c4aa595d92c3fa02b93e44cbcdbc0c17e9b 100644 (file)
@@ -462,6 +462,13 @@ int bt_ctf_stream_class_add_event_class(
                        stream_class->byte_order);
        }
 
+       /* Notifiy listeners of the trace's schema modification. */
+       if (trace) {
+               struct bt_ctf_ir_element element = { .element = event_class,
+                               .type = BT_CTF_IR_TYPE_EVENT_CLASS };
+
+               (void) bt_ctf_trace_element_modification(&element, trace);
+       }
 end:
        BT_PUT(trace);
        BT_PUT(old_stream_class);
This page took 0.024563 seconds and 4 git commands to generate.