Do not use `bool` type; use new `bt_bool` instead
[babeltrace.git] / tests / lib / test_bt_ctf_field_type_validation.c
index 065d367b696d796c4ee81cafb515206b60cf9d0c..dd1ed7b6cd58ecc1e4defe8a248b89d49f75841d 100644 (file)
@@ -26,6 +26,7 @@
 #include <babeltrace/ctf-ir/stream-class.h>
 #include <babeltrace/ctf-ir/trace.h>
 #include <assert.h>
+#include <stdbool.h>
 #include <string.h>
 #include <stdarg.h>
 #include <glib.h>
@@ -1717,9 +1718,9 @@ void validate_test_pass(struct bt_ctf_trace *trace)
        struct bt_ctf_field_type *ft_target = NULL;
        struct bt_ctf_field_type *ft_tag = NULL;
 
-       sc = bt_ctf_trace_get_stream_class(trace, 0);
+       sc = bt_ctf_trace_get_stream_class_by_index(trace, 0);
        assert(sc);
-       ec = bt_ctf_stream_class_get_event_class(sc, 0);
+       ec = bt_ctf_stream_class_get_event_class_by_index(sc, 0);
        assert(ec);
 
        ph = bt_ctf_trace_get_packet_header_type(trace);
This page took 0.023795 seconds and 4 git commands to generate.