lib: make trace IR API const-correct
[babeltrace.git] / include / babeltrace / trace-ir / trace-internal.h
index f829d59a770d51a8566a9413e2fc9486167f22ef..fcf1bd29ebad6d5e83f93bb80dc009b2c7b1cee0 100644 (file)
@@ -2,8 +2,6 @@
 #define BABELTRACE_TRACE_IR_TRACE_INTERNAL_H
 
 /*
- * BabelTrace - Trace IR: Trace internal
- *
  * Copyright 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
  * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
@@ -30,7 +28,7 @@
 #include <babeltrace/assert-pre-internal.h>
 #include <babeltrace/trace-ir/trace.h>
 #include <babeltrace/trace-ir/stream-class-internal.h>
-#include <babeltrace/trace-ir/field-types.h>
+#include <babeltrace/trace-ir/field-classes.h>
 #include <babeltrace/trace-ir/fields.h>
 #include <babeltrace/trace-ir/attributes-internal.h>
 #include <babeltrace/trace-ir/clock-class-internal.h>
@@ -74,7 +72,7 @@ struct bt_trace {
         */
        GHashTable *stream_classes_stream_count;
 
-       struct bt_field_type *packet_header_ft;
+       struct bt_field_class *packet_header_fc;
        bool assigns_automatic_stream_class_id;
 
        GArray *is_static_listeners;
@@ -88,7 +86,7 @@ struct bt_trace {
 };
 
 BT_HIDDEN
-void _bt_trace_freeze(struct bt_trace *trace);
+void _bt_trace_freeze(const struct bt_trace *trace);
 
 #ifdef BT_DEV_MODE
 # define bt_trace_freeze               _bt_trace_freeze
@@ -100,7 +98,7 @@ BT_HIDDEN
 void bt_trace_add_stream(struct bt_trace *trace, struct bt_stream *stream);
 
 BT_HIDDEN
-uint64_t bt_trace_get_automatic_stream_id(struct bt_trace *trace,
-               struct bt_stream_class *stream_class);
+uint64_t bt_trace_get_automatic_stream_id(const struct bt_trace *trace,
+               const struct bt_stream_class *stream_class);
 
 #endif /* BABELTRACE_TRACE_IR_TRACE_INTERNAL_H */
This page took 0.025444 seconds and 4 git commands to generate.