#include <stdbool.h>
#include <babeltrace/babeltrace-internal.h>
-#include <babeltrace/component/component.h>
+#include <babeltrace/graph/component.h>
enum text_default {
TEXT_DEFAULT_UNSET,
bool clock_date;
bool clock_gmt;
bool debug_info_full_path;
-
enum text_color_option color;
+ bool verbose;
};
struct text_component {
struct text_options options;
+ struct bt_notification_iterator *input_iterator;
FILE *out, *err;
bool processed_first_event; /* Should be per-iterator. */
int depth; /* nesting, used for tabulation alignment. */
uint64_t delta_real_timestamp;
};
+enum stream_packet_context_quarks_enum {
+ Q_TIMESTAMP_BEGIN,
+ Q_TIMESTAMP_END,
+ Q_EVENTS_DISCARDED,
+ Q_CONTENT_SIZE,
+ Q_PACKET_SIZE,
+ Q_PACKET_SEQ_NUM,
+ STREAM_PACKET_CONTEXT_QUARKS_LEN, /* Always the last one of this enum. */
+};
+
+GQuark stream_packet_context_quarks[STREAM_PACKET_CONTEXT_QUARKS_LEN];
+
BT_HIDDEN
enum bt_component_status text_print_event(struct text_component *text,
struct bt_ctf_event *event);