Add the verbose parameter to the legacy text options
[babeltrace.git] / plugins / text / text.h
index 103dc07977d5be48e89d9a0f7b9494c973cd0c9e..ed4ad3e86d0b0b723a6523731c825fdc2f55ac82 100644 (file)
@@ -29,7 +29,7 @@
 
 #include <stdbool.h>
 #include <babeltrace/babeltrace-internal.h>
-#include <babeltrace/plugin/component.h>
+#include <babeltrace/component/component.h>
 
 enum text_default {
        TEXT_DEFAULT_UNSET,
@@ -37,6 +37,12 @@ enum text_default {
        TEXT_DEFAULT_HIDE,
 };
 
+enum text_color_option {
+       TEXT_COLOR_OPT_NEVER,
+       TEXT_COLOR_OPT_AUTO,
+       TEXT_COLOR_OPT_ALWAYS,
+};
+
 struct text_options {
        char *output_path;
        char *debug_info_dir;
@@ -53,7 +59,6 @@ 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;
@@ -65,17 +70,25 @@ struct text_options {
        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;
        FILE *out, *err;
-       bool processed_first_event;
-       uint64_t last_real_timestamp;
+       bool processed_first_event; /* Should be per-iterator. */
        int depth;      /* nesting, used for tabulation alignment. */
        bool start_line;
        GString *string;
        struct bt_value *plugin_opt_map;        /* Temporary parameter map. */
+       bool use_colors;
+
+       uint64_t last_cycles_timestamp;
+       uint64_t delta_cycles;
+
+       uint64_t last_real_timestamp;
+       uint64_t delta_real_timestamp;
 };
 
 BT_HIDDEN
This page took 0.023781 seconds and 4 git commands to generate.