lib: make trace IR API const-correct
[babeltrace.git] / include / babeltrace / trace-ir / event-class-internal.h
index cb8335ded6787cd81db827c1d0c84a323529dc58..28f8d785fc7609872484c20a71720dedcc6d48fe 100644 (file)
@@ -70,7 +70,7 @@ struct bt_event_class {
 };
 
 BT_HIDDEN
-void _bt_event_class_freeze(struct bt_event_class *event_class);
+void _bt_event_class_freeze(const struct bt_event_class *event_class);
 
 #ifdef BT_DEV_MODE
 # define bt_event_class_freeze         _bt_event_class_freeze
@@ -80,7 +80,7 @@ void _bt_event_class_freeze(struct bt_event_class *event_class);
 
 static inline
 struct bt_stream_class *bt_event_class_borrow_stream_class_inline(
-               struct bt_event_class *event_class)
+               const struct bt_event_class *event_class)
 {
        BT_ASSERT(event_class);
        return (void *) bt_object_borrow_parent(&event_class->base);
This page took 0.024608 seconds and 4 git commands to generate.