Revert "Add event header accessors and support for custom event headers"
[babeltrace.git] / formats / ctf / ir / stream-class.c
index edbd43b6948ab2747a6e635144dd01a53c5921b9..058f4b29ecd1765f6a7d0521d58c02eb559a73c5 100644 (file)
@@ -151,7 +151,7 @@ int bt_ctf_stream_class_set_id(struct bt_ctf_stream_class *stream_class,
 {
        int ret = 0;
 
-       if (!stream_class) {
+       if (!stream_class || stream_class->frozen) {
                ret = -1;
                goto end;
        }
@@ -286,7 +286,7 @@ int bt_ctf_stream_class_set_packet_context_type(
 {
        int ret = 0;
 
-       if (!stream_class || !packet_context_type) {
+       if (!stream_class || !packet_context_type || stream_class->frozen) {
                ret = -1;
                goto end;
        }
This page took 0.039141 seconds and 4 git commands to generate.