#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>
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);
trace = bt_ctf_trace_create();
assert(trace);
- ret = bt_ctf_trace_set_native_byte_order(trace,
- BT_CTF_BYTE_ORDER_LITTLE_ENDIAN);
- assert(ret == 0);
sc = bt_ctf_stream_class_create("nice_piece_of_stream_class");
assert(sc);
ec = bt_ctf_event_class_create("oh_what_an_event_class");
ep = test_fail_variant_tag_mismatch_mappings_get_ep();
assert(ep);
event = create_event_with_context_and_payload(NULL, ep);
- ok(!event, "Variant FT with mismatching tag FT is invalid");
+ ok(event, "Variant FT with mismatching tag FT is valid");
BT_PUT(ep);
BT_PUT(event);