bt_trace_class_create(): accept mandatory self component
[babeltrace.git] / lib / trace-ir / trace-class.c
index b072bad8d160256cfd26981b8b320a350940036c..78a7161bb56c2c632521115364bcf8cfcf80ad00 100644 (file)
@@ -96,11 +96,12 @@ void free_packet_header_field(struct bt_field_wrapper *field_wrapper,
        bt_field_wrapper_destroy(field_wrapper);
 }
 
-struct bt_trace_class *bt_trace_class_create(void)
+struct bt_trace_class *bt_trace_class_create(bt_self_component *self_comp)
 {
        struct bt_trace_class *tc = NULL;
        int ret;
 
+       BT_ASSERT_PRE_NON_NULL(self_comp, "Self component");
        BT_LOGD_STR("Creating default trace class object.");
        tc = g_new0(struct bt_trace_class, 1);
        if (!tc) {
This page took 0.024252 seconds and 4 git commands to generate.