-static
-int print_event_header_raw(struct pretty_component *pretty,
- const bt_event *event)
-{
- int ret = 0;
- const bt_field *main_field = NULL;
-
- main_field = bt_event_borrow_header_field_const(event);
- if (!main_field) {
- goto end;
- }
- if (!pretty->start_line) {
- g_string_append(pretty->string, ", ");
- }
- pretty->start_line = false;
- if (pretty->options.print_scope_field_names) {
- print_name_equal(pretty, "stream.event.header");
- }
- ret = print_field(pretty, main_field,
- pretty->options.print_header_field_names, NULL, 0);
-
-end:
- return ret;
-}
-