-static void set_trace_packet_header(bt_trace_class *trace_class)
-{
- bt_field_class *packet_header_type;
- bt_field_class *fc;
- int ret;
-
- packet_header_type = bt_field_class_structure_create(trace_class);
- BT_ASSERT(packet_header_type);
- fc = bt_field_class_unsigned_integer_create(trace_class);
- BT_ASSERT(fc);
- bt_field_class_integer_set_field_value_range(fc, 32);
- ret = bt_field_class_structure_append_member(packet_header_type,
- "stream_id", fc);
- BT_ASSERT(ret == 0);
- bt_field_class_put_ref(fc);
- ret = bt_trace_class_set_packet_header_field_class(trace_class,
- packet_header_type);
- BT_ASSERT(ret == 0);
-
- bt_field_class_put_ref(packet_header_type);
-}
-