lib: split trace API into trace class and trace APIs
[babeltrace.git] / lib / trace-ir / event-header-field.c
index ae16dd1ef3d15bf18de52eefad1bd8e225429a88..b877180c62bdf90728b51350008f94115c4f80af 100644 (file)
@@ -57,13 +57,12 @@ void bt_event_header_field_release(
 }
 
 struct bt_event_header_field *bt_event_header_field_create(
-               struct bt_stream_class *priv_stream_class)
+               struct bt_stream_class *stream_class)
 {
-       struct bt_stream_class *stream_class = (void *) priv_stream_class;
        struct bt_field_wrapper *field_wrapper;
 
        BT_ASSERT_PRE_NON_NULL(stream_class, "Stream class");
-       BT_ASSERT_PRE(bt_stream_class_borrow_trace_inline(stream_class),
+       BT_ASSERT_PRE(bt_stream_class_borrow_trace_class_inline(stream_class),
                "Stream class is not part of a trace: %!+S", stream_class);
        BT_ASSERT_PRE(stream_class->event_header_fc,
                "Stream class has no event header field classe: %!+S",
This page took 0.022926 seconds and 4 git commands to generate.