Text output identical with babeltrace 1
[babeltrace.git] / plugins / text / text.h
index ed4ad3e86d0b0b723a6523731c825fdc2f55ac82..222035e8f1714e72853fc28ffd020ce55d896a71 100644 (file)
@@ -29,7 +29,7 @@
 
 #include <stdbool.h>
 #include <babeltrace/babeltrace-internal.h>
-#include <babeltrace/component/component.h>
+#include <babeltrace/graph/component.h>
 
 enum text_default {
        TEXT_DEFAULT_UNSET,
@@ -59,6 +59,7 @@ struct text_options {
        bool print_delta_field;
        bool print_loglevel_field;
        bool print_emf_field;
+       bool print_callsite_field;
        bool print_trace_field;
        bool print_trace_domain_field;
        bool print_trace_procname_field;
@@ -76,6 +77,7 @@ struct text_options {
 
 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. */
@@ -91,6 +93,18 @@ struct text_component {
        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);
This page took 0.024209 seconds and 4 git commands to generate.