projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement trace listener interface
[babeltrace.git]
/
formats
/
ctf
/
ir
/
stream-class.c
diff --git
a/formats/ctf/ir/stream-class.c
b/formats/ctf/ir/stream-class.c
index cddbb97968b7c9523af201f58375e62faed4de5d..877a9c4aa595d92c3fa02b93e44cbcdbc0c17e9b 100644
(file)
--- a/
formats/ctf/ir/stream-class.c
+++ b/
formats/ctf/ir/stream-class.c
@@
-462,6
+462,13
@@
int bt_ctf_stream_class_add_event_class(
stream_class->byte_order);
}
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);
end:
BT_PUT(trace);
BT_PUT(old_stream_class);
This page took
0.026413 seconds
and
4
git commands to generate.