#include <babeltrace/ctf-ir/stream-class-internal.h>
#include <babeltrace/ctf-writer/functor-internal.h>
#include <babeltrace/ctf-ir/event-types-internal.h>
+#include <babeltrace/ctf-ir/attributes-internal.h>
#include <babeltrace/ctf-ir/utils.h>
#include <babeltrace/compiler.h>
#include <babeltrace/objects.h>
void bt_ctf_trace_destroy(struct bt_ctf_ref *ref);
static
int init_trace_packet_header(struct bt_ctf_trace *trace);
+static
+void bt_ctf_trace_freeze(struct bt_ctf_trace *trace);
static
const unsigned int field_type_aliases_alignments[] = {
if (ret) {
goto end;
}
- bt_ctf_stream_class_freeze(stream_class);
- trace->frozen = 1;
- bt_ctf_attributes_freeze(trace->environment);
+ bt_ctf_stream_class_freeze(stream_class);
+ bt_ctf_trace_freeze(trace);
end:
if (ret) {
(void) bt_ctf_stream_class_set_trace(stream_class, NULL);
return field_type;
}
+static
+void bt_ctf_trace_freeze(struct bt_ctf_trace *trace)
+{
+ bt_ctf_attributes_freeze(trace->environment);
+ trace->frozen = 1;
+}
+
static
int init_trace_packet_header(struct bt_ctf_trace *trace)
{